172 Commits

Author SHA1 Message Date
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
dc89f2b0f6 Add Properties to user. 2021-05-30 18:24:22 +08:00
Yang Luo
b23e8cf90c Improve i18n. 2021-05-24 20:48:04 +08:00
Yang Luo
bd888fad38 Fix translation. 2021-05-23 23:40:44 +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
b2a75a527b feat: intergrate verification code countdown as a component
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-05-20 21:09:12 +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
18806f07a8 Support cred auto-login. 2021-05-16 18:18:55 +08:00
Yang Luo
fb9f18af2c Add Email provider. 2021-05-14 23:45:20 +08:00
Yang Luo
d361a39ffc Add phone prefix to UI. 2021-05-14 17:39:53 +08:00
Yang Luo
9346587ca6 Filter github providers. 2021-05-14 15:55:50 +08:00
Yang Luo
f4db41acb3 Fix console warnings. 2021-05-13 22:23:04 +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
Yang Luo
e3b3a76088 Add willLog() and control access to signup page. 2021-05-08 16:52:02 +08:00
Yang Luo
6095af0512 Add checkPassword(). 2021-05-03 10:13:32 +08:00
Yang Luo
813204194f Add SignupUrl and ForgetUrl to Application. 2021-05-03 00:48:02 +08:00
Yang Luo
d509c61816 Fix bug in Casdoor's own 3rd-party login. 2021-05-02 00:20:40 +08:00
Yang Luo
0f7cd56441 Support Email and phone login. 2021-05-01 20:23:20 +08:00
Yang Luo
fa2653c836 Fix comment. 2021-04-29 22:56:35 +08:00
Yang Luo
785f306c4b Use helmet on login, signup pages. 2021-04-29 21:28:24 +08:00
Yang Luo
c26c9ba0e8 Fix page links. 2021-04-28 22:40:21 +08:00
Yang Luo
35e482f24e Fix the signup. 2021-04-28 21:56:14 +08:00
Yang Luo
ee8f2a6046 Improve signup page. 2021-04-28 15:54:50 +08:00
Yang Luo
ef1995de4f Translate signup page. 2021-04-28 09:43:11 +08:00
Yang Luo
7a0ed4ebaf Replace "register" with "sign up". 2021-04-27 22:47:44 +08:00
Yang Luo
3793029491 Adjust register page text. 2021-04-27 22:35:14 +08:00
Yang Luo
8ce8169d65 Translate login page. 2021-04-27 22:03:22 +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
5c49693bc0 Use react-social-login-buttons. 2021-03-29 22:11:28 +08:00
Yang Luo
d6c8bb87c2 Fix provider type. 2021-03-28 20:20:40 +08:00
Yang Luo
73ffb22c32 Improve login page. 2021-03-28 19:34:21 +08:00
Yang Luo
f5ceae901b Support auto-login. 2021-03-28 16:53:49 +08:00
Yang Luo
0127f8fb63 Improve response message. 2021-03-28 10:36:47 +08:00
Yang Luo
6c2c5be33d Fix React warnings. 2021-03-27 11:56:16 +08:00
Yang Luo
437289438f Improve login page. 2021-03-26 21:58:30 +08:00
Yang Luo
d11bb49eac Improve login failure handling. 2021-03-26 21:58:19 +08:00
Yang Luo
fa358654e6 Use Link. 2021-03-26 21:58:10 +08:00
Yang Luo
6880c28194 Remove onLoggedIn(). 2021-03-26 21:57:54 +08:00
Yang Luo
9af2ac49be Add RegisterPage and ResultPage. 2021-03-26 21:57:41 +08:00
Yang Luo
3d4c987d32 Rename Face to LoginPage. 2021-03-26 21:56:51 +08:00
Yang Luo
7fe9705303 Rename to SelfLoginPage. 2021-03-26 21:56:27 +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
1c97501016 Simplify callback URL. 2021-03-21 16:05:00 +08:00
Yang Luo
26502350d3 Add innerParams. 2021-03-21 13:45:55 +08:00
Yang Luo
7f367ae346 Fix AuthCallback's code handling. 2021-03-21 00:38:00 +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
f89f454e0e Add getOAuthGetParameters(). 2021-03-20 16:51:10 +08:00