2034 Commits

Author SHA1 Message Date
Yang Luo
798386655f Fix getFullAvatarUrl(). 2021-05-16 21:26:30 +08:00
Yang Luo
45bd3b316b Fix hash update. 2021-05-16 21:22:20 +08:00
Yang Luo
4b9ce5f401 Fix add/update salted password. 2021-05-16 21:04:26 +08:00
Yang Luo
18806f07a8 Support cred auto-login. 2021-05-16 18:18:55 +08:00
hsluoyz
338c589e51
Merge pull request #61 from 1340908470/refactor-IdProvider
refactor: remove ClientId/ClientSecret/RedirectUrl in IdProvider
2021-05-16 09:46:24 +08:00
Weihao
f48e04ef15 refactor: remove ClientId/ClientSecret/RedirectUrl in IdProvider int /idp/github.go & google.go & qq.go; alter Scopes in QqIdProvider.Config: profile&email -> get_user_info
Signed-off-by: Weihao <1340908470@qq.com>
2021-05-16 00:24:36 +08:00
Yang Luo
df7ac93feb Show error "Invalid JWT token". 2021-05-15 23:34:06 +08:00
Yang Luo
55e0fe14ca Improve reset buttons. 2021-05-15 20:44:40 +08:00
Yang Luo
e206ec5057 Update antd to latest v4.15.5 2021-05-15 20:32:00 +08:00
Yang Luo
2ea5e7ec78 Remove user's PhonePrefix. 2021-05-15 13:54:23 +08:00
Yang Luo
43db2de8d8 Add phone provider. 2021-05-15 13:43:21 +08:00
hsluoyz
08779b607d
Merge pull request #57 from Kininaru/master
fix: remove all dom APIs from the project
2021-05-15 12:43:41 +08:00
Kininaru
18ea101db8 fix: remove all dom APIs from the project
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-05-15 12:35:49 +08:00
hsluoyz
23955c4450
Merge pull request #56 from Kininaru/master
Fixed reset phone email data error and removed dom API from ResetModal.js
2021-05-15 12:14:03 +08:00
Kininaru
d8e5194e99 fix: send code button background color
Signed-off-by: Kininaru <shiftregister233@outlook.com>

fixed error

Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-05-15 11:58:23 +08:00
Kininaru
22aeebe8d3 fix: reset phone email data error and removed dom API from it
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-05-15 11:47:09 +08:00
Yang Luo
162c7261a3 Add getDefaultEmailProvider(). 2021-05-15 10:13:12 +08:00
Yang Luo
fb9f18af2c Add Email provider. 2021-05-14 23:45:20 +08:00
Yang Luo
b7cbc0e015 Return sms error message. 2021-05-14 18:19:47 +08:00
Yang Luo
d361a39ffc Add phone prefix to UI. 2021-05-14 17:39:53 +08:00
Yang Luo
db5ecddd3f Remove /get-default-providers API. 2021-05-14 16:07:39 +08:00
Yang Luo
9346587ca6 Filter github providers. 2021-05-14 15:55:50 +08:00
Yang Luo
fce4efcb84 Call Enforcer.ClearPolicy() to remove previous rules in DB. 2021-05-13 22:50:50 +08:00
Yang Luo
f4db41acb3 Fix console warnings. 2021-05-13 22:23:04 +08:00
hsluoyz
e4b6f758a7
Merge pull request #55 from Kininaru/master
feat: add reset Email and phone by using verification code.
2021-05-13 10:19:52 +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
hsluoyz
7bea33dabd
Merge pull request #54 from Kininaru/master
feat: set password for users
2021-05-09 21:12:41 +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
6e5aa2bc40 Finish db update sync. 2021-05-09 15:44:12 +08:00
Yang Luo
e2f6efd1ab Add user.PreHash 2021-05-09 14:54:17 +08:00
Yang Luo
d2d4c411ab Add password button. 2021-05-09 14:53: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
hsluoyz
aa706019f2
Merge pull request #53 from HatsuneBQ/master
Added email sender and added owner to avatar url
2021-05-09 11:51:03 +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
Kininaru
885592d774 feat: add email sender
Signed-off-by: Kininaru <shiftregister233@outlook.com>

update go mod sum

Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-05-09 11:39:42 +08:00
Yang Luo
a1851c2b78 Add github.com/dchest/captcha imports. 2021-05-09 11:29:25 +08:00
Yang Luo
de67ee9014 Can sync update from 2nd DB. 2021-05-08 22:04:45 +08:00
Yang Luo
c76a432003 Add user.UpdateUserHash() 2021-05-08 18:51:37 +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
a24665714a Add logger. 2021-05-07 20:51:29 +08:00
Yang Luo
8a4311c85c Add PasswordSalt to org. 2021-05-06 19:13:03 +08:00
Yang Luo
f442f11568 Move passwordType to org. 2021-05-05 23:32:21 +08:00
Yang Luo
fffada894c Add organization and user to token. 2021-05-04 22:36:05 +08:00
Yang Luo
6095af0512 Add checkPassword(). 2021-05-03 10:13:32 +08:00