133 Commits

Author SHA1 Message Date
WindSpiritSR
8c6f0a31b6 feat: support storage provider to terms of use file (#221)
Signed-off-by: WindSpiritSR <simon343riley@gmail.com>
2021-08-14 14:23:15 +08:00
sh1luo
718fc4df74 fix: improve goland experience (#238)
Signed-off-by: sh1luo <690898835@qq.com>
2021-08-14 14:22:18 +08:00
Yang Luo
5c2f96bda0 Add UploadFile() API. 2021-08-14 14:22:01 +08:00
Yang Luo
40fbca7db4 Remove UploadAvatarToStorage(). 2021-08-14 14:20:24 +08:00
Yang Luo
1b74a58d06 Fix compile errors. 2021-08-14 14:20:13 +08:00
Yang Luo
9feefc31f9 Use c.ResponseOk() for all places. 2021-08-14 14:19:50 +08:00
Yang Luo
a5783598ff Rename to UploadFile(). 2021-08-14 14:19:48 +08:00
sh1luo
c55fa4f452 feat: add local file system storage provider (#224)
Signed-off-by: sh1luo <690898835@qq.com>
2021-08-14 14:19:45 +08:00
Yang Luo
44150a6781 Refactor the storage provider interface. 2021-08-14 14:19:37 +08:00
Yang Luo
d16569d461 Use c.ResponseError() for all places. 2021-08-14 14:19:33 +08:00
Yang Luo
6aeadfa3bd Improve provider check. 2021-08-14 14:19:23 +08:00
sh1luo
8c66ef6860 fix: improve code specification (#231) 2021-08-14 14:18:08 +08:00
Yang Luo
af3def97bf Fix avatar upload. 2021-08-14 14:08:29 +08:00
Kininaru
c0ab24205d
feat: add user initScore in app.conf (#220)
Signed-off-by: Kininaru <shiftregister233@outlook.com>

-> 2000
2021-08-03 23:28:02 +08:00
Yang Luo
0c657f0487 Get real IP for verification log. 2021-08-03 22:34:12 +08:00
Yang Luo
1a2d85102c Support defaultHttpClient. 2021-08-01 17:36:03 +08:00
sh1luo
bc5e748e5c
feat: add country/region select (#207)
Signed-off-by: sh1luo <690898835@qq.com>
2021-07-31 16:02:48 +08:00
Kininaru
7a2230f63e
feat: expose email and sms APIs as services to SDK (#202)
Signed-off-by: Kininaru <shiftregister233@outlook.com>

invalid receivers
2021-07-30 14:15:10 +08:00
Kininaru
3d493b8d8f
feat: integrate Storage config into providers (#198)
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-07-26 11:39:49 +08:00
sh1luo
c632c3c307
fix: replace casdoor with casbin (#194)
Signed-off-by: sh1luo <690898835@qq.com>
2021-07-25 09:34:25 +08:00
Kininaru
4a930121c4 feat: session without autosignin will expire
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-07-19 10:14:14 +08:00
Kininaru
d83b86df37 refactor: SessionUser -> SessionUsername
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-07-19 10:14:14 +08:00
WindSpiritSR
705d2ede6b feat: support LDAP (#160)
Signed-off-by: WindSpiritSR <simon343riley@gmail.com>
2021-07-19 10:13:23 +08:00
Yang Luo
dc0712c8a5 Replace getDefaultApplication() with getUserApplication(). 2021-07-19 10:12:04 +08:00
killer
21b36bbb47 feat: add UI to view logs
Signed-off-by: killer <1533063601@qq.com>
2021-07-19 10:11:01 +08:00
WindSpiritSR
1bca883f4f fix: Move proxy address config to app.conf
Signed-off-by: WindSpiritSR <simon343riley@gmail.com>
2021-07-04 15:48:29 +08:00
Yang Luo
9c233e42c0 Add SignupApplication to user. 2021-06-21 10:22:47 +08:00
Yang Luo
64f85fdc6c Fix get null object bug. 2021-06-21 01:09:02 +08:00
Yang Luo
54e97d57bf Use OAuth avatar to update default avatar. 2021-06-21 00:54:07 +08:00
Yang Luo
b189993547 Login page can also enter prompt page. 2021-06-20 22:17:03 +08:00
Yang Luo
a43db3e55a Fix prompt redirect logic and db sync bug. 2021-06-20 13:56:32 +08:00
Yang Luo
d3a8ab8347 Finish the prompt page logic. 2021-06-20 11:52:04 +08:00
Yang Luo
6dc3fd0f45 Avoid linking the same account twice. 2021-06-18 23:25:24 +08:00
Yang Luo
586da5caac Add isValidPersonalName(). 2021-06-17 11:55:06 +08:00
Yang Luo
9dd43238f0 Add DefaultAvatar to org. 2021-06-17 01:44:19 +08:00
Yang Luo
b11b3b6021 Use signup table in Signup API. 2021-06-17 00:49:02 +08:00
Yang Luo
7ea469e876 Add provider_item.go 2021-06-16 00:18:56 +08:00
Yang Luo
5a852bfd1d Use new providerItem. 2021-06-14 22:42:34 +08:00
Yang Luo
1025a7c118 Allow to oauth login by name. 2021-06-12 12:46:25 +08:00
Yang Luo
c4de5449af Fix properties in "sign up via OAuth". 2021-06-11 23:37:06 +08:00
Yang Luo
8e5f3c18e1 Add UpdateUserInternal(). 2021-06-09 21:41:27 +08:00
Yang Luo
f672045b45 Allow to sign up with OAuth. 2021-06-09 21:28:33 +08:00
Yang Luo
04a246355e Handle json error in Login(). 2021-06-09 19:54:26 +08:00
Yang Luo
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
Weihao
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
Yang Luo
ec5a574ce6 Show null provider error. 2021-06-06 11:19:28 +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
2e7ef69f07 Add some fields to User. 2021-06-01 20:37:00 +08:00
Yang Luo
95cda41732 Improve UserInfo. 2021-05-31 01:23:32 +08:00