75 Commits

Author SHA1 Message Date
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
Yang Luo
5b1b8662ac Improve CheckUserLogin(). 2021-05-01 19:45:40 +08:00
Yang Luo
7b32207443 Check more in CheckUserSignup(). 2021-05-01 18:39:40 +08:00
Yang Luo
904faae6eb Improve CheckUserSignup(). 2021-05-01 17:45:01 +08:00
Yang Luo
5779d57960 Set org's document title and favicon. 2021-04-29 19:51:03 +08:00
Yang Luo
cfe1eb9d50 Improve panic message. 2021-04-29 15:43:15 +08:00
Yang Luo
35e482f24e Fix the signup. 2021-04-28 21:56:14 +08:00
Yang Luo
ea9bdbf45e Improve UploadAvatar API. 2021-04-28 19:02:01 +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
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
Yang Luo
2934d6bdeb Rename userObj to user. 2021-04-18 20:47:40 +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
2029a28d7b Fix getAccount() response. 2021-03-28 10:51:08 +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
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
hsluoyz
d0e243fca3
Merge pull request #23 from Kininaru/master
feat: added avatar tailoring and uploading
2021-03-17 13:25:53 +08:00