Yang Luo
b189993547
Login page can also enter prompt page.
2021-06-20 22:17:03 +08:00
Yang Luo
a43db3e55a
Fix prompt redirect logic and db sync bug.
2021-06-20 13:56:32 +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
586da5caac
Add isValidPersonalName().
2021-06-17 11:55:06 +08:00
Yang Luo
9dd43238f0
Add DefaultAvatar to org.
2021-06-17 01:44:19 +08:00
Yang Luo
b11b3b6021
Use signup table in Signup API.
2021-06-17 00:49:02 +08:00
Yang Luo
7ea469e876
Add provider_item.go
2021-06-16 00:18:56 +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
cd89f7a559
Merge pull request #80 from 1340908470/master
...
feat: find back password using email/phone instead of username
2021-06-07 20:12:27 +08:00
Weihao
c983ee7ca6
feat: won't send verification code if there is no account bounded to phone/email
...
Signed-off-by: Weihao <1340908470@qq.com>
2021-06-07 19:13:06 +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
11f1f8f440
Show properties in user page.
2021-05-30 18:35:05 +08:00
Yang Luo
dc89f2b0f6
Add Properties to user.
2021-05-30 18:24:22 +08:00
Yang Luo
2fff5f79ce
Can set email title and content now.
2021-05-24 20:21:41 +08:00
Yang Luo
290c5aac9e
Add user to VerificationRecord.
2021-05-24 01:18:21 +08:00
Yang Luo
dbf11d61a7
Add sms and email providers to app.
2021-05-24 01:02:38 +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
Kininaru
66d953a6c1
feat: check user email and phone when signing up
...
Signed-off-by: Kininaru <shiftregister233@outlook.com>
phone prefix error
Signed-off-by: Kininaru <shiftregister233@outlook.com>
fix i18n
Signed-off-by: Kininaru <shiftregister233@outlook.com>
fix i18n error
Signed-off-by: Kininaru <shiftregister233@outlook.com>
removed useless file
Signed-off-by: Kininaru <shiftregister233@outlook.com>
move timeout to app.conf
Signed-off-by: Kininaru <shiftregister233@outlook.com>
i18n
Signed-off-by: Kininaru <shiftregister233@outlook.com>
made verification code reusable
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-05-18 22:20:26 +08:00
Yang Luo
947d132362
Refactor out c.RequireSignedIn()
2021-05-17 23:25:28 +08:00
Yang Luo
b103683fea
Refactor GetDefaultApplication().
2021-05-16 23:07:45 +08:00
Yang Luo
6508d96162
Remove GetOrganizationByName().
2021-05-16 22:58:30 +08:00
Yang Luo
e6862713bb
Improve password length check.
2021-05-16 22:01:22 +08:00
Yang Luo
4b9ce5f401
Fix add/update salted password.
2021-05-16 21:04:26 +08:00
Yang Luo
2ea5e7ec78
Remove user's PhonePrefix.
2021-05-15 13:54:23 +08:00
Yang Luo
b7cbc0e015
Return sms error message.
2021-05-14 18:19:47 +08:00
Yang Luo
db5ecddd3f
Remove /get-default-providers API.
2021-05-14 16:07:39 +08:00
Kininaru
1589da0a62
fix: check cn phone regex bug and add check to verification code
...
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-05-13 09:55:37 +08:00
Kininaru
892cb39e3e
feat: move User.PhonePrefix to Organization.PhonePrefix
...
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-05-13 09:39:07 +08:00
Kininaru
827930a020
feat: add reset phone by verification code
...
Signed-off-by: Kininaru <shiftregister233@outlook.com>
fixed client bug
Signed-off-by: Kininaru <shiftregister233@outlook.com>
feat: add i18n
Signed-off-by: Kininaru <shiftregister233@outlook.com>
add Casbin License
Signed-off-by: Kininaru <shiftregister233@outlook.com>
removed port from remoteaddr
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-05-12 22:59:42 +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
19c1ef1b68
Fix bug in update column names.
2021-05-09 16:14:05 +08:00
Yang Luo
efab90ef3f
Fix avatar URL.
2021-05-09 12:07:09 +08:00
Yang Luo
5a3abdbc95
Rename to authState, useProxy, delete EnableDocs.
2021-05-09 12:02:20 +08:00
Kininaru
5d1133dac9
fix: add owner to avatar url
...
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-05-09 11:42:22 +08:00
Yang Luo
de67ee9014
Can sync update from 2nd DB.
2021-05-08 22:04:45 +08:00
Yang Luo
e3b3a76088
Add willLog() and control access to signup page.
2021-05-08 16:52:02 +08:00
Yang Luo
75f23478d1
Add GetMaskedUser().
2021-05-08 00:06:30 +08:00
Yang Luo
f442f11568
Move passwordType to org.
2021-05-05 23:32:21 +08:00
Yang Luo
82f4f542ed
Add User's IsForbidden.
2021-05-02 12:18:28 +08:00