273 Commits

Author SHA1 Message Date
WindSpiritSR
6142ca52ca
feat: add facebook provider (#79)
* feat: add facebook provider

Signed-off-by: WindSpirit <simon343riley@gmail.com>

* fix: set fb id to username and reformat

Signed-off-by: WindSpirit <simon343riley@gmail.com>
2021-06-06 10:06:54 +08:00
Yang Luo
eb658ad8ee Support affiliation sync. 2021-06-04 23:26:30 +08:00
Yang Luo
081da18403 Add address to user. 2021-06-04 20:54:17 +08:00
Yang Luo
7434d0f3d3 Fix "forget password" back bug. 2021-06-04 01:27:20 +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
58c7a60220 Show error in AccessToken. 2021-06-01 22:03:04 +08:00
Yang Luo
2e7ef69f07 Add some fields to User. 2021-06-01 20:37:00 +08:00
Yang Luo
90e617b2dc Improve "Third-party logins" UI. 2021-05-31 01:49:38 +08:00
Yang Luo
95cda41732 Improve UserInfo. 2021-05-31 01:23:32 +08:00
Yang Luo
0960578c35 Improve providers. 2021-05-31 00:24:52 +08:00
Yang Luo (罗杨)
645f8e5418
Merge pull request #73 from Kininaru/master
fix: removed outdated lines in README
2021-05-30 18:37:29 +08:00
Yang Luo
11f1f8f440 Show properties in user page. 2021-05-30 18:35:05 +08:00
Kininaru
57a73edc4a fix: removed outdated lines in README
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-05-30 18:26:20 +08:00
Yang Luo
dc89f2b0f6 Add Properties to user. 2021-05-30 18:24:22 +08:00
Yang Luo
badd75b894 Refactor out user_util.go 2021-05-30 13:37:34 +08:00
Yang Luo
215b96c881 Let SendEmail() return string. 2021-05-29 15:25:41 +08:00
Yang Luo
0f8a46fe0b Fix args in initBuiltInApplication(). 2021-05-28 22:38:12 +08:00
Yang Luo
089ff6c6eb Add AffiliationUrl. 2021-05-24 21:27:00 +08:00
Yang Luo
b23e8cf90c Improve i18n. 2021-05-24 20:48:04 +08:00
Yang Luo
2fff5f79ce Can set email title and content now. 2021-05-24 20:21:41 +08:00
Yang Luo
705c0159d4 Add id to VerificationRecord. 2021-05-24 19:25:35 +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
Yang Luo
bd888fad38 Fix translation. 2021-05-23 23:40:44 +08:00
Yang Luo
31d981baf1 Fix small issues. 2021-05-23 23:38:38 +08:00
hsluoyz
02edb89602
Merge pull request #70 from Kininaru/master
feat: turing test before sending code
2021-05-23 18:01:33 +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
hsluoyz
665e77b797
Merge pull request #66 from Kininaru/master
feat: intergrate verification code countdown as a component
2021-05-20 21:43:46 +08:00
Kininaru
b2a75a527b feat: intergrate verification code countdown as a component
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-05-20 21:09:12 +08:00
hsluoyz
3ccf54581a
Merge pull request #63 from Kininaru/master
feat: check email and phone number when signing up
2021-05-18 22:41:00 +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
Kininaru
9bc29e25ef fix: add primary key Type to table verification_record
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-05-18 19:42:03 +08:00
Yang Luo
947d132362 Refactor out c.RequireSignedIn() 2021-05-17 23:25:28 +08:00
Weihao Chen
3e41ce0104
feat: add WeChatIdProvider (#62)
* feat: add WeChatIdProvider

Signed-off-by: Weihao <1340908470@qq.com>

* refactor: refactor WeChatIdProvider to suit to IdProvider interface; translate the annotation to English

Signed-off-by: Weihao <1340908470@qq.com>

* refactor: remove unnecessary comment

Signed-off-by: Weihao <1340908470@qq.com>
2021-05-17 14:17:46 +08:00
Yang Luo
85c76e2ed1 Fix SetUserField()'s affected bug. 2021-05-16 23:08:55 +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
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