321 Commits

Author SHA1 Message Date
Yang Luo
7049e09570 Add error handling to face page. 2021-03-20 12:29:34 +08:00
Yang Luo
80c47dd8c6 Add frontend /login/oauth 2021-03-20 11:34:04 +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
Kininaru
1908f528c8 feat: added avatar tailoring and uploading
Signed-off-by: Kininaru <shiftregister233@outlook.com>

fixed type errors

Signed-off-by: Kininaru <shiftregister233@outlook.com>

fixed the wrong folder

Signed-off-by: Kininaru <shiftregister233@outlook.com>

rewrite login check logic, added unix time to avatar url

Signed-off-by: Kininaru <shiftregister233@outlook.com>

fixed a bug about strconv

Signed-off-by: Kininaru <shiftregister233@outlook.com>

supported oss

Signed-off-by: Kininaru <shiftregister233@outlook.com>

disabled oss provide qiniu

Signed-off-by: Kininaru <shiftregister233@outlook.com>

Fixed avatar url error

Signed-off-by: Kininaru <shiftregister233@outlook.com>

Fixed avatar length bug

Signed-off-by: Kininaru <shiftregister233@outlook.com>

Fixed avatar length bug

Signed-off-by: Kininaru <shiftregister233@outlook.com>

fixed oss.conf

Signed-off-by: Kininaru <shiftregister233@outlook.com>

Put uploading avatar into UserEditPage

Signed-off-by: Kininaru <shiftregister233@outlook.com>

removed avatar dir

Signed-off-by: Kininaru <shiftregister233@outlook.com>

removed avatar in main.go

Signed-off-by: Kininaru <shiftregister233@outlook.com>

Made CropperDiv a reusable component, and updated README for OSS config

Signed-off-by: Kininaru <shiftregister233@outlook.com>

Convert ts to js

Signed-off-by: Kininaru <shiftregister233@outlook.com>

removed ts

Signed-off-by: Kininaru <shiftregister233@outlook.com>

fix: set avatar link to string 255

Signed-off-by: Kininaru <shiftregister233@outlook.com>

fix: updated yarn lock

Signed-off-by: Kininaru <shiftregister233@outlook.com>

add: Casbin license

Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-03-17 13:19:23 +08:00
Yang Luo
4a170d1d56 Change /api/auth/login to POST. 2021-03-15 00:49:16 +08:00
Yang Luo
2a481d6a2e Add frontend getOAuthCode() API. 2021-03-15 00:28:34 +08:00
Yang Luo
4e22e0523d Rename redirectUrl to redirectUri. 2021-03-15 00:01:21 +08:00
Yang Luo
5e04b8c726 Add HomepageUrl and Description to app. 2021-03-06 21:50:48 +08:00
Yang Luo
f3f902af45 Parse subOwner, subName. 2021-02-28 23:14:48 +08:00
Yang Luo
df5514ef31 Add getUsers() to Auth folder. 2021-02-15 23:28:25 +08:00
Yang Luo
475f79ffc8 Set face logo width to 250. 2021-02-15 16:54:05 +08:00
Yang Luo
906fe9758e Add profile links. 2021-02-14 22:49:06 +08:00
Yang Luo
65eee22099 Check user under org. 2021-02-14 21:45:40 +08:00
Yang Luo
46fb2b4bff Use a href for oauth icon. 2021-02-14 17:40:15 +08:00
Yang Luo
b5b86262d6 Refactor the auth code. 2021-02-14 17:12:08 +08:00
Yang Luo
9b45e5fe43 Add setAuthServerUrl(). 2021-02-14 15:59:25 +08:00
Yang Luo
277dec0af3 Define auth.ServerUrl. 2021-02-14 15:51:56 +08:00
Yang Luo
20b70c323d Rename to method. 2021-02-14 15:45:48 +08:00
Yang Luo
faeb93494c Improve auth folder. 2021-02-14 15:40:57 +08:00
Yang Luo
001496b90f Add auth folder. 2021-02-14 14:34:03 +08:00