845 Commits

Author SHA1 Message Date
Yang Luo
32afafd56c Add Prompted field. 2021-06-18 02:02:43 +08:00
Yang Luo
ce60a76920 Rename canUnbind to canUnlink. 2021-06-17 13:45:10 +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
02b1feb2e5 Add signup table. 2021-06-16 14:07:39 +08:00
Yang Luo
7ea469e876 Add provider_item.go 2021-06-16 00:18:56 +08:00
Yang Luo
a7912eecc1 Add SigninUrl to application. 2021-06-14 22:55:08 +08:00
Yang Luo
5a852bfd1d Use new providerItem. 2021-06-14 22:42:34 +08:00
Yang Luo
9fe310f2b7 Add provider table. 2021-06-14 19:09:04 +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
Yang Luo
f672045b45 Allow to sign up with OAuth. 2021-06-09 21:28:33 +08:00
Yang Luo
440aad2369 Only show some providers in signup page. 2021-06-09 20:42:23 +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
Yang Luo
98ec187019 Fix RedirectUris null bug. 2021-06-06 22:17:47 +08:00
Kininaru
56be5f9a51 feat: authorize via clientId and clientSecret
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-06-06 17:27:03 +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
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
11f1f8f440 Show properties in user page. 2021-05-30 18:35:05 +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
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
31d981baf1 Fix small issues. 2021-05-23 23:38:38 +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
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
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
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
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
Yang Luo
162c7261a3 Add getDefaultEmailProvider(). 2021-05-15 10:13:12 +08:00
Yang Luo
fb9f18af2c Add Email provider. 2021-05-14 23:45:20 +08:00
Yang Luo
b7cbc0e015 Return sms error message. 2021-05-14 18:19:47 +08:00