Yang Luo
64f85fdc6c
Fix get null object bug.
2021-06-21 01:09:02 +08:00
Yang Luo
54e97d57bf
Use OAuth avatar to update default avatar.
2021-06-21 00:54:07 +08:00
Yang Luo
b189993547
Login page can also enter prompt page.
2021-06-20 22:17:03 +08:00
Yang Luo
d3a8ab8347
Finish the prompt page logic.
2021-06-20 11:52:04 +08:00
Yang Luo
6dc3fd0f45
Avoid linking the same account twice.
2021-06-18 23:25:24 +08:00
Yang Luo
5a852bfd1d
Use new providerItem.
2021-06-14 22:42:34 +08:00
Yang Luo
1025a7c118
Allow to oauth login by name.
2021-06-12 12:46:25 +08:00
Yang Luo
c4de5449af
Fix properties in "sign up via OAuth".
2021-06-11 23:37:06 +08:00
Yang Luo
8e5f3c18e1
Add UpdateUserInternal().
2021-06-09 21:41:27 +08:00
Yang Luo
f672045b45
Allow to sign up with OAuth.
2021-06-09 21:28:33 +08:00
Yang Luo
04a246355e
Handle json error in Login().
2021-06-09 19:54:26 +08:00
Yang Luo
ec5a574ce6
Show null provider error.
2021-06-06 11:19:28 +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
Yang Luo
29049297d8
Fix old-format oauth data bugs.
2021-06-01 23:32:34 +08:00
Yang Luo
2e7ef69f07
Add some fields to User.
2021-06-01 20:37:00 +08:00
Yang Luo
95cda41732
Improve UserInfo.
2021-05-31 01:23:32 +08:00
Yang Luo
dc89f2b0f6
Add Properties to user.
2021-05-30 18:24:22 +08:00
Yang Luo
19c1ef1b68
Fix bug in update column names.
2021-05-09 16:14:05 +08:00
Yang Luo
5a3abdbc95
Rename to authState, useProxy, delete EnableDocs.
2021-05-09 12:02:20 +08:00
Yang Luo
5b1b8662ac
Improve CheckUserLogin().
2021-05-01 19:45:40 +08:00
Yang Luo
cfe1eb9d50
Improve panic message.
2021-04-29 15:43:15 +08:00
Yang Luo
7a0ed4ebaf
Replace "register" with "sign up".
2021-04-27 22:47:44 +08:00
Yang Luo
c317d601a5
Sync info from 3rd-party if possible.
2021-04-27 19:35:40 +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
0127f8fb63
Improve response message.
2021-03-28 10:36:47 +08:00
Yang Luo
d11bb49eac
Improve login failure handling.
2021-03-26 21:58:19 +08:00
Yang Luo
b6b433f26a
Add EnableSignUp.
2021-03-26 21:55:39 +08:00
Yang Luo
da38f7a6ba
Improve login error handling.
2021-03-25 23:22:34 +08:00
Yang Luo
540adfed20
Improve IDP username handling.
2021-03-24 00:44:41 +08:00
Yang Luo
c24de7d180
Change provider interface.
2021-03-23 23:23:59 +08:00
Yang Luo
fa141a0edb
Add QqIdProvider.
2021-03-22 20:00:35 +08:00
Yang Luo
8b921b2c1e
Fix double GET params issue, fix double state bug.
2021-03-20 23:50: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
c8cd37058e
Add codeToResponse().
2021-03-20 09:12:24 +08:00
Yang Luo
18c021b009
Merge two login functions.
2021-03-20 00:30:37 +08:00
Yang Luo
0ce7420907
Add HandleLoggedIn().
2021-03-15 19:11:41 +08:00
Yang Luo
4a170d1d56
Change /api/auth/login to POST.
2021-03-15 00:49:16 +08:00
Yang Luo
4e22e0523d
Rename redirectUrl to redirectUri.
2021-03-15 00:01:21 +08:00
Yang Luo
64c9548019
Update license header.
2021-03-13 23:09:14 +08:00
Yang Luo
dfa77ab25d
Add GoogleIdProvider.
2021-02-21 23:51:40 +08:00
Yang Luo
40fb336e95
Add IdProvider interface.
2021-02-21 22:33:53 +08:00
Yang Luo
65eee22099
Check user under org.
2021-02-14 21:45:40 +08:00
Yang Luo
20b70c323d
Rename to method.
2021-02-14 15:45:48 +08:00
Yang Luo
001496b90f
Add auth folder.
2021-02-14 14:34:03 +08:00