8e5f3c18e1
Add UpdateUserInternal().
2021-06-09 21:41:27 +08:00
f672045b45
Allow to sign up with OAuth.
2021-06-09 21:28:33 +08:00
04a246355e
Handle json error in Login().
2021-06-09 19:54:26 +08:00
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
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
ec5a574ce6
Show null provider error.
2021-06-06 11:19:28 +08:00
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
29049297d8
Fix old-format oauth data bugs.
2021-06-01 23:32:34 +08:00
2e7ef69f07
Add some fields to User.
2021-06-01 20:37:00 +08:00
95cda41732
Improve UserInfo.
2021-05-31 01:23:32 +08:00
11f1f8f440
Show properties in user page.
2021-05-30 18:35:05 +08:00
dc89f2b0f6
Add Properties to user.
2021-05-30 18:24:22 +08:00
2fff5f79ce
Can set email title and content now.
2021-05-24 20:21:41 +08:00
290c5aac9e
Add user to VerificationRecord.
2021-05-24 01:18:21 +08:00
dbf11d61a7
Add sms and email providers to app.
2021-05-24 01:02:38 +08:00
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
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
947d132362
Refactor out c.RequireSignedIn()
2021-05-17 23:25:28 +08:00
b103683fea
Refactor GetDefaultApplication().
2021-05-16 23:07:45 +08:00
6508d96162
Remove GetOrganizationByName().
2021-05-16 22:58:30 +08:00
e6862713bb
Improve password length check.
2021-05-16 22:01:22 +08:00
4b9ce5f401
Fix add/update salted password.
2021-05-16 21:04:26 +08:00
2ea5e7ec78
Remove user's PhonePrefix.
2021-05-15 13:54:23 +08:00
b7cbc0e015
Return sms error message.
2021-05-14 18:19:47 +08:00
db5ecddd3f
Remove /get-default-providers API.
2021-05-14 16:07:39 +08:00
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
892cb39e3e
feat: move User.PhonePrefix to Organization.PhonePrefix
...
Signed-off-by: Kininaru <shiftregister233@outlook.com >
2021-05-13 09:39:07 +08:00
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
400e335e68
feat: add reset email by verification code
...
Signed-off-by: Kininaru <shiftregister233@outlook.com >
2021-05-12 21:38:31 +08:00
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
19c1ef1b68
Fix bug in update column names.
2021-05-09 16:14:05 +08:00
efab90ef3f
Fix avatar URL.
2021-05-09 12:07:09 +08:00
5a3abdbc95
Rename to authState, useProxy, delete EnableDocs.
2021-05-09 12:02:20 +08:00
5d1133dac9
fix: add owner to avatar url
...
Signed-off-by: Kininaru <shiftregister233@outlook.com >
2021-05-09 11:42:22 +08:00
de67ee9014
Can sync update from 2nd DB.
2021-05-08 22:04:45 +08:00
e3b3a76088
Add willLog() and control access to signup page.
2021-05-08 16:52:02 +08:00
75f23478d1
Add GetMaskedUser().
2021-05-08 00:06:30 +08:00
f442f11568
Move passwordType to org.
2021-05-05 23:32:21 +08:00
82f4f542ed
Add User's IsForbidden.
2021-05-02 12:18:28 +08:00
5b1b8662ac
Improve CheckUserLogin().
2021-05-01 19:45:40 +08:00
7b32207443
Check more in CheckUserSignup().
2021-05-01 18:39:40 +08:00
904faae6eb
Improve CheckUserSignup().
2021-05-01 17:45:01 +08:00
5779d57960
Set org's document title and favicon.
2021-04-29 19:51:03 +08:00
cfe1eb9d50
Improve panic message.
2021-04-29 15:43:15 +08:00
35e482f24e
Fix the signup.
2021-04-28 21:56:14 +08:00
ea9bdbf45e
Improve UploadAvatar API.
2021-04-28 19:02:01 +08:00
7a0ed4ebaf
Replace "register" with "sign up".
2021-04-27 22:47:44 +08:00
c317d601a5
Sync info from 3rd-party if possible.
2021-04-27 19:35:40 +08:00
36895801f0
Add Link API.
2021-04-19 01:14:41 +08:00
6774b0379c
Add Unlink API.
2021-04-18 23:14:46 +08:00