60 Commits

Author SHA1 Message Date
sh1luo
c632c3c307
fix: replace casdoor with casbin (#194)
Signed-off-by: sh1luo <690898835@qq.com>
2021-07-25 09:34:25 +08:00
WindSpiritSR
705d2ede6b feat: support LDAP (#160)
Signed-off-by: WindSpiritSR <simon343riley@gmail.com>
2021-07-19 10:13:23 +08:00
wasabi
c963ba6098 feat: add linkedin provider
Signed-off-by: wasabi <690898835@qq.com>
2021-07-19 09:57:43 +08:00
killer
62397ce3b1 feat: admin can update user's organization
Signed-off-by: killer <1533063601@qq.com>
2021-06-25 16:28:10 +08:00
killer
81a2f91d83 fix: Users can update the language to the database
Signed-off-by: killer <1533063601@qq.com>
2021-06-22 09:15:03 +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
killer
00134dda4f fix: Properties can now be updated
Signed-off-by: killer <1533063601@qq.com>
2021-06-18 16:16:40 +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
wasabi
d14ba476b9
feat: add gitee provider (#104)
* feat: add gitee provider

Signed-off-by: wasabi <690898835@qq.com>

* Update gitee.go

Signed-off-by: wasabi <690898835@qq.com>
2021-06-14 12:53:07 +08:00
Yang Luo
00ba783fc4 Use static resources. 2021-06-12 12:29:07 +08:00
wasabi
3d3a331784 feat: add weibo provider
Signed-off-by: wasabi <690898835@qq.com>
2021-06-10 16:55:36 +08:00
Yang Luo
8e5f3c18e1 Add UpdateUserInternal(). 2021-06-09 21:41:27 +08:00
wasabi
4162ab4984 feat: add dingtalk provider (#94)
* feat: add dingtalk provider

Signed-off-by: zKen <690898835@qq.com>

* fix: amend the comment

Signed-off-by: zKen <690898835@qq.com>
2021-06-09 19:53:22 +08:00
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
2e7ef69f07 Add some fields to User. 2021-06-01 20:37:00 +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
85c76e2ed1 Fix SetUserField()'s affected bug. 2021-05-16 23:08:55 +08:00
Yang Luo
6508d96162 Remove GetOrganizationByName(). 2021-05-16 22:58: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
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
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
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
f442f11568 Move passwordType to org. 2021-05-05 23:32:21 +08:00
Yang Luo
d8aa6a1c95 Add TestSyncUsers(). 2021-05-02 23:06:08 +08:00
Yang Luo
82f4f542ed Add User's IsForbidden. 2021-05-02 12:18:28 +08:00
Yang Luo
79f1c62ff7 Move adapter.createTable() out, make engine public. 2021-05-02 10:34:31 +08:00
Yang Luo
0f7cd56441 Support Email and phone login. 2021-05-01 20:23:20 +08:00
Yang Luo
7b32207443 Check more in CheckUserSignup(). 2021-05-01 18:39:40 +08:00
Yang Luo
c317d601a5 Sync info from 3rd-party if possible. 2021-04-27 19:35:40 +08:00
Yang Luo
0fc7015c61 Add user type. 2021-04-26 19:00:23 +08:00
Yang Luo
d586efc242 Add user's phonePrefix. 2021-04-26 17:57:32 +08:00
Yang Luo
6774b0379c Add Unlink API. 2021-04-18 23:14:46 +08:00
Yang Luo
d6715c7601 Improve API error handling. 2021-03-28 00:48:34 +08:00
Yang Luo
540adfed20 Improve IDP username handling. 2021-03-24 00:44:41 +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
64c9548019 Update license header. 2021-03-13 23:09:14 +08:00
Yang Luo
ba4185c9b1 Add AuthzFilter. 2021-02-28 20:23:50 +08:00
Yang Luo
dfa77ab25d Add GoogleIdProvider. 2021-02-21 23:51:40 +08:00