Yang Luo
465d25a272
Improve router base.go
2021-09-05 14:44:27 +08:00
Yang Luo
14d09cad2c
Support server-side upload-resource call.
2021-09-05 01:03:29 +08:00
Yang Luo
06006c87b8
Improve filter code.
2021-09-05 00:22:08 +08:00
Yang Luo
398ba19fa5
Add CheckUserPassword() API.
2021-08-15 21:57:36 +08:00
Yang Luo
495b64995f
Add resource list page.
2021-08-15 00:25:46 +08:00
Yang Luo
b7e0a4fe4e
Return 200 for denied request.
2021-08-14 14:26:42 +08:00
Yang Luo
5c2f96bda0
Add UploadFile() API.
2021-08-14 14:22:01 +08:00
sh1luo
8c66ef6860
fix: improve code specification ( #231 )
2021-08-14 14:18:08 +08:00
Yang Luo
d79544f34a
Use User in Claims.
2021-08-14 14:15:52 +08:00
Yang Luo
ea692c4e73
Rename to AutoSigninFilter
2021-08-14 14:15:49 +08:00
Kininaru
7a2230f63e
feat: expose email and sms APIs as services to SDK ( #202 )
...
Signed-off-by: Kininaru <shiftregister233@outlook.com>
invalid receivers
2021-07-30 14:15:10 +08:00
sh1luo
c632c3c307
fix: replace casdoor with casbin ( #194 )
...
Signed-off-by: sh1luo <690898835@qq.com>
2021-07-25 09:34:25 +08:00
WindSpiritSR
705d2ede6b
feat: support LDAP ( #160 )
...
Signed-off-by: WindSpiritSR <simon343riley@gmail.com>
2021-07-19 10:13:23 +08:00
Yang Luo
dc0712c8a5
Replace getDefaultApplication() with getUserApplication().
2021-07-19 10:12:04 +08:00
killer
21b36bbb47
feat: add UI to view logs
...
Signed-off-by: killer <1533063601@qq.com>
2021-07-19 10:11:01 +08:00
Yang Luo
30bed3cb47
Override session when signed in by link.
2021-06-10 13:27:03 +08:00
Kininaru
b65ae4eec1
fix: wrong usement in getUsername
...
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-06-06 18:56:00 +08:00
Kininaru
56be5f9a51
feat: authorize via clientId and clientSecret
...
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-06-06 17:27:03 +08:00
Weihao Chen
1cb5ae54c5
feat: add "forget password" [front & backend] ( #75 )
...
* feat: add "forget password" [front & backend]
Signed-off-by: Weihao <1340908470@qq.com>
* fix: verification code can be sent even if no mobile phone or email is selected
refactor: forgetPassword -> forget; GetEmailAndPhoneByUsername -> GetEmailAndPhone; remove useless note
Signed-off-by: Weihao <1340908470@qq.com>
2021-06-02 13:39:01 +08:00
Kininaru
f39378562f
feat: turing test before send code
...
Signed-off-by: Kininaru <shiftregister233@outlook.com>
i18n
i18n
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-05-22 21:03:49 +08:00
Yang Luo
18806f07a8
Support cred auto-login.
2021-05-16 18:18:55 +08:00
Yang Luo
df7ac93feb
Show error "Invalid JWT token".
2021-05-15 23:34:06 +08:00
Yang Luo
db5ecddd3f
Remove /get-default-providers API.
2021-05-14 16:07:39 +08:00
Kininaru
400e335e68
feat: add reset email by verification code
...
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-05-12 21:38:31 +08:00
Kininaru
33e61cc5cf
feat: set password for users
...
Signed-off-by: Kininaru <shiftregister233@outlook.com>
removed useless blank
Signed-off-by: Kininaru <shiftregister233@outlook.com>
add license header
Signed-off-by: Kininaru <shiftregister233@outlook.com>
i18n
Signed-off-by: Kininaru <shiftregister233@outlook.com>
database logic
Signed-off-by: Kininaru <shiftregister233@outlook.com>
i18n
Signed-off-by: Kininaru <shiftregister233@outlook.com>
i18n
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-05-09 20:56:52 +08:00
Yang Luo
e3b3a76088
Add willLog() and control access to signup page.
2021-05-08 16:52:02 +08:00
Yang Luo
a24665714a
Add logger.
2021-05-07 20:51:29 +08:00
Yang Luo
7a0ed4ebaf
Replace "register" with "sign up".
2021-04-27 22:47:44 +08:00
Yang Luo
36895801f0
Add Link API.
2021-04-19 01:14:41 +08:00
Yang Luo
6774b0379c
Add Unlink API.
2021-04-18 23:14:46 +08:00
Kininaru
3a13b8e73c
feat: add go backend API docs
...
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-03-29 23:40:25 +08:00
Yang Luo
f5ceae901b
Support auto-login.
2021-03-28 16:53:49 +08:00
Yang Luo
0127f8fb63
Improve response message.
2021-03-28 10:36:47 +08:00
Yang Luo
d6715c7601
Improve API error handling.
2021-03-28 00:48:34 +08:00
Yang Luo
808e6c6283
Finish /login/oauth/authorize
2021-03-20 22:34:22 +08:00
Yang Luo
63a4066a8d
Return code for /api/login
2021-03-20 13:05:34 +08:00
Yang Luo
9980ef1975
Add /api/get-app-login
2021-03-20 10:51:00 +08:00
Yang Luo
18c021b009
Merge two login functions.
2021-03-20 00:30:37 +08:00
hsluoyz
d0e243fca3
Merge pull request #23 from Kininaru/master
...
feat: added avatar tailoring and uploading
2021-03-17 13:25:53 +08:00
Kininaru
1908f528c8
feat: added avatar tailoring and uploading
...
Signed-off-by: Kininaru <shiftregister233@outlook.com>
fixed type errors
Signed-off-by: Kininaru <shiftregister233@outlook.com>
fixed the wrong folder
Signed-off-by: Kininaru <shiftregister233@outlook.com>
rewrite login check logic, added unix time to avatar url
Signed-off-by: Kininaru <shiftregister233@outlook.com>
fixed a bug about strconv
Signed-off-by: Kininaru <shiftregister233@outlook.com>
supported oss
Signed-off-by: Kininaru <shiftregister233@outlook.com>
disabled oss provide qiniu
Signed-off-by: Kininaru <shiftregister233@outlook.com>
Fixed avatar url error
Signed-off-by: Kininaru <shiftregister233@outlook.com>
Fixed avatar length bug
Signed-off-by: Kininaru <shiftregister233@outlook.com>
Fixed avatar length bug
Signed-off-by: Kininaru <shiftregister233@outlook.com>
fixed oss.conf
Signed-off-by: Kininaru <shiftregister233@outlook.com>
Put uploading avatar into UserEditPage
Signed-off-by: Kininaru <shiftregister233@outlook.com>
removed avatar dir
Signed-off-by: Kininaru <shiftregister233@outlook.com>
removed avatar in main.go
Signed-off-by: Kininaru <shiftregister233@outlook.com>
Made CropperDiv a reusable component, and updated README for OSS config
Signed-off-by: Kininaru <shiftregister233@outlook.com>
Convert ts to js
Signed-off-by: Kininaru <shiftregister233@outlook.com>
removed ts
Signed-off-by: Kininaru <shiftregister233@outlook.com>
fix: set avatar link to string 255
Signed-off-by: Kininaru <shiftregister233@outlook.com>
fix: updated yarn lock
Signed-off-by: Kininaru <shiftregister233@outlook.com>
add: Casbin license
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-03-17 13:19:23 +08:00
Yang Luo
4a170d1d56
Change /api/auth/login to POST.
2021-03-15 00:49:16 +08:00
Yang Luo
1fd6ee388c
Add /api/oauth/code API.
2021-03-14 18:18:03 +08:00
Yang Luo
202a94a8e5
Add /api/oauth/token API.
2021-03-14 00:18:11 +08:00
Yang Luo
85523fa9d4
Add token pages.
2021-03-14 00:00:29 +08:00
Yang Luo
64c9548019
Update license header.
2021-03-13 23:09:14 +08:00
Yang Luo
f3f902af45
Parse subOwner, subName.
2021-02-28 23:14:48 +08:00
Yang Luo
ba4185c9b1
Add AuthzFilter.
2021-02-28 20:23:50 +08:00
Yang Luo
001496b90f
Add auth folder.
2021-02-14 14:34:03 +08:00
Yang Luo
c81118feff
Add github oauth.
2021-02-14 00:22:24 +08:00
Yang Luo
cdc1445883
Fix login.
2021-02-13 00:11:12 +08:00