guangwu
54e4747dbc
refactor: code-optimization ( #1885 )
...
* refactor: code-optimization
* fix: restoring code style
* fix: gofmt
2023-05-23 17:54:51 +08:00
Yaodong Yu
1260354b36
fix: add sAMAccountName for AD search ( #1869 )
2023-05-19 21:16:59 +08:00
Yang Luo
437376c472
Fix CheckAccessPermission()
2023-05-18 13:36:16 +08:00
Yang Luo
695a612e77
Improve passwordType in CheckPassword()
2023-05-16 20:14:05 +08:00
Alexander Egorov
645d53e2c6
feat: User should have PasswordType like Organization ( #1841 )
...
* fixes #1840 : [backend] User should have PasswordType like Organization is
* Update migrator.go
* Update and rename migrator_1_314_0_PR_1838.go to migrator_1_314_0_PR_1841.go
* Update user.go
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-05-16 20:11:19 +08:00
Yang Luo
96a3db21a1
Support LDAP search by user tag
2023-05-12 13:03:43 +08:00
Yaodong Yu
95f4f4cb6d
feat: refactor out form package and optimize verification code module ( #1787 )
...
* refactor: add forms package and optimize verification code module
* chore: add license
* chore: fix lint
* chore: fix lint
* chore: fix lint
* chore: swagger
2023-04-25 23:05:53 +08:00
XDTD
6d6cbc7e6f
feat: add dynamic mode for provider to enable verification code when the login password is wrong ( #1753 )
...
* fix: update webAuthnBufferDecode to support Base64URL for WebAuthn updates
* feat: enable verification code when the login password is wrong
* fix: only enable captcha when login in password
* fix: disable login error limits when captcha on
* fix: pass "enableCaptcha" as an optional param
* fix: change enbleCapctah to optional bool param
2023-04-22 16:16:25 +08:00
Yaodong Yu
1b1de1dd01
feat: add LDAP custom filter support ( #1719 )
...
* refactor: improve ldap server code
* feat: custom filter
* fix: fix displayName mapping
* feat: add custom filter search fields
* chore: add license
* chore: i18n
* chore: i18n
* chore: update init field
2023-04-13 14:12:31 +08:00
Yaodong Yu
b7d78d1e27
fix: validate parameter and nil in func updateUser ( #1714 )
...
* fix: validate parameter and nil in func updateUser
* fix: delete blank line
2023-04-09 10:35:30 +08:00
Yaodong Yu
b99a0c3ca2
feat: optimize the "forget password" page ( #1709 )
2023-04-06 23:06:18 +08:00
Yaodong Yu
fd883a3211
feat: improve verification error translation ( #1660 )
2023-03-15 23:44:38 +08:00
Yaodong Yu
295a69c5f7
feat: support LDAP with SSL/TLS enabled ( #1655 )
2023-03-15 11:12:31 +08:00
Yaodong Yu
e8a7b7ee9c
feat: support all captcha for login ( #1619 )
...
* refactor: captcha modal
* feat: support all captcha when login
* chore: improve i18 in loginPage.js
2023-03-05 20:31:46 +08:00
Yaodong Yu
eb72c9f273
feat: support multiple country codes for sending SMS ( #1557 )
...
* feat: support multiple country code
* feat: improve UI
* feat: migrate accountItem
* fix: Aliyun compatible
* fix: phone validate
* fix: typo
2023-02-16 22:53:28 +08:00
June
79fc0516dd
feat: check username if it's changed ( #1482 )
2023-01-17 17:08:37 +08:00
Yaodong Yu
ce2a4bbf6e
feat: check uniqueness for email and phone when updating user ( #1461 )
...
* fix: check unique field when update user
* Update data.json
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2023-01-10 22:34:08 +08:00
Gucheng Wang
57028c2059
Remove duplicated i18n words
2023-01-06 20:24:14 +08:00
Gucheng Wang
a6e9084973
Remove duplicated i18n words
2023-01-06 20:12:32 +08:00
Gucheng Wang
6fb3e2cd7f
Remove check_util i18n words
2023-01-06 19:57:13 +08:00
Ngọc Long
1d8b0a264e
feat(login): add code login limit ( #1442 )
2023-01-06 18:51:43 +08:00
imp2002
b8b915abe1
feat: check AccessPermission in multiple permissions ( #1420 )
2022-12-23 14:06:02 +08:00
Mr Forest
1bb3d2dea9
feat: refactor backend i18n ( #1373 )
...
* fix: handle the dataSourceName when DB changes
* reduce duplication of code
* feat: refactor translation error message
* feat: use json intsead of ini file
* remove useless translation
* fix translate problems
* remove useless addition
* fix pr problems
* fix pr problems
* fix split problem
* use gofumpt to fmt code
* use crowdin to execute backend translation
* fix pr problems
* refactor: change translation file structure same as frontend
* delete useless output
* update go.mod
2022-12-07 13:13:23 +08:00
wenxuan70
25d56ee8d5
feat: allow captcha to be enabled when logging in ( #1211 )
...
* Fix bug in GetAcceptLanguage()
* feat: allow captcha to be enabled when logging in
* feat: when the login password is wrong, enable captcha
* feat: Restrict captcha from frontend
* fix: modify CaptchaModal component
* fix: modify the words of i18n
* Update data.json
Co-authored-by: Gucheng Wang <nomeguy@qq.com>
Co-authored-by: hsluoyz <hsluoyz@qq.com>
2022-10-28 13:38:14 +08:00
Mr Forest
d86f3c88c7
feat: support i18n in backend err messages ( #1232 )
...
* feat: support i18n in backend err messages
* use gofumpt to fmt code
* fix review problems
* support auto generate err message
* delete beego/i18n moudle
* fix Github action test problems
* fix review problems
* use gofumpt to format code
* use gofumpt to fmt code
2022-10-23 15:16:24 +08:00
cofecatt
19d351d157
feat: allow non-ASCII characters in username ( #1235 )
2022-10-22 20:46:50 +08:00
Gucheng
146aec9ee8
feat: skip username restriction for new users coming from OAuth providers. ( #1225 )
2022-10-17 18:01:01 +08:00
cofecatt
59ff5e02ab
fix: Add support for including underscores for username ( #1210 )
...
* fix: Add support for including underscores for username
* Update check.go
Co-authored-by: Yang Luo <hsluoyz@qq.com>
2022-10-11 19:39:19 +08:00
cofecatt
4c7f6fda37
fix: Add restriction to username when signing up ( #1203 )
2022-10-10 19:58:02 +08:00
cofecatt
e266696b32
feat: add default permission to built-in group ( #1087 )
...
* fix: add default permission
* fix: add default permission
* fix: add default permission
2022-09-02 12:03:13 +08:00
疯魔慕薇
08a1e7ae32
fix: keep phone/email unique. ( #1038 )
...
Signed-off-by: 疯魔慕薇 <kfanjian@gmail.com>
Signed-off-by: 疯魔慕薇 <kfanjian@gmail.com>
2022-08-20 12:14:08 +08:00
q1anx1
aedef1eea1
feat(login): add login limit ( #1023 )
...
* feat(login): add login limit
* chore: rename vars
* chore: use `string`
* fix: clear the signin error times after succeessfull login
* chore: modify code position
2022-08-17 01:39:53 +08:00
疯魔慕薇
2dcdfbe6d3
fix: error login logic of mobile phone login ( #1017 )
...
* fix : #1016
1. Limit username cannot be digital.
2. Check avoid repeat register with same phone or email.
Signed-off-by: 疯魔慕薇 <kfanjian@gmail.com>
* Update check.go
Signed-off-by: 疯魔慕薇 <kfanjian@gmail.com>
Co-authored-by: Yang Luo <hsluoyz@qq.com>
2022-08-16 00:14:26 +08:00
q1anx1
2ea58cd639
chore(style): use gofumpt
to fmt go code ( #967 )
2022-08-07 12:26:14 +08:00
Mikey
2bb8491499
fix: unable to get user if profile is private ( #936 )
2022-07-31 10:54:41 +08:00
SLingyu
4e3eedf246
feat: fix bug that the default permission prevents admin to login in ( #907 )
...
* fix:The certs page is displayed incorrectly
* Translations for each language are added
* Replace the variables certificat with Certificat with certificate and Certificate
* Replace the variables certificat with Certificat with certificate and Certificate
* Variable names are more accurate
* Variable names are more accurate
* Modify the variable name
* fix: Default action prevents admin to login in
2022-07-24 23:36:55 +08:00
Gucheng Wang
6e70f0fc58
Refactor CheckAccessPermission().
2022-07-13 00:50:32 +08:00
Yixiang Zhao
2bca424370
feat: implement access control using casbin ( #806 )
...
* feat: implement access control using casbin
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* chore: sort imports
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* fix: remove
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* Update auth.go
Co-authored-by: Gucheng <85475922+nomeguy@users.noreply.github.com>
2022-07-13 00:34:35 +08:00
Yixiang Zhao
530330bd66
feat: add isProfilePublic setting for accessing user info ( #656 )
...
* feat: add isProfilePublic setting for accessing user info
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
* fix: requested changes
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
2022-04-16 15:10:03 +08:00
蔡点点
e3f5bf93b2
fix: adjust the password check logic for ldap user ( #597 )
...
* fix: the password check logic for ldap user.
LDAP user should only use the ldap connection to check the password.
* fix: code format
2022-03-28 17:19:58 +08:00
Yixiang Zhao
d43d7d1ae9
feat: support master password for ldap user ( #561 )
...
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
2022-03-12 21:06:38 +08:00
Gucheng Wang
c14bf9fdab
Fix bug in first name, last name checking
2022-02-28 13:17:05 +08:00
Yang Luo
21392dcc14
Support user's first name and last name.
2022-02-27 14:02:52 +08:00
Yang Luo
953d3d5bc5
Change personal to real name.
2022-02-27 13:44:44 +08:00
Gucheng Wang
db37f53d6c
Update license headers.
2022-02-13 23:39:27 +08:00
Yixiang Zhao
5ec0c7a890
fix: fix the SQL injection vulnerability in field filter ( #442 )
...
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
2022-01-26 19:36:36 +08:00
Gucheng Wang
c22ab44894
Update import path.
2022-01-20 14:11:46 +08:00
Yang Luo
b95f107a60
Support cred manager for organization.MasterPassword
2021-12-22 20:56:22 +08:00
jianmaikj
d6c2d0f3e8
feat: Add bcrypt encrypted password type ( #386 )
...
* Add loading and countdown status to the verification code sending button
* Add bcrypt encrypted password type
* Revert "Add loading and countdown status to the verification code sending button"
This reverts commit 782b9e229acf2cced9848f137f1b714b0be1df63.
* Update bcrypt.go
* Update go.sum
2021-12-22 20:26:19 +08:00
Товарищ программист
6947ebd152
feat: support checking password through ldap server ( #354 )
...
Signed-off-by: Товарищ программист <2962928213@qq.com>
2021-12-10 22:45:01 +08:00