* fix: fix error cause by theme filter
* fix: add saml url to theme filter and use getGetOwnerAndNameFromIdWithError instead of using GetOwnerAndNameFromId
* fix: fix code error
* fix: add support for cas and pack judgement into a function
* fix: fix linter err
* fix: CORS check issue
* fix: promote format
* fix: promote format
* fix: promote format
* fix: promote format
* Update application.go
* Update cors_filter.go
* Update validation.go
---------
Co-authored-by: Yang Luo <hsluoyz@qq.com>
* feat: support IP limitation for user entry pages
* fix: error message, ip whiteList, check_entry_ip
* fix: perform checks on the backend
* fix: change the implementation of checking IpWhitelist
* fix: add entryIpCheck in SetPassword and remove it from VerifyCode
* fix: remove additional error message pop-ups
* fix: add isRestricted and show ip error in EntryPage.js
* fix: error message
* Update auth.go
* Update check_ip.go
* Update check_ip.go
* fix: update return value of the check function from string to error
* fix: remoteAddress position
* fix: IP whitelist
* fix: clientIp
* fix:add util.GetClientIpFromRequest
* fix: remove duplicate IP and port separation codes and remove extra special characters after clientIp
* fix: gofumpt
* fix: getIpInfo and localhost
---------
Co-authored-by: Yang Luo <hsluoyz@qq.com>
* feat: add custom signup field
* feat: support more field in signup page
* feat: support more field in signup page
* feat: support more field in signup page
* feat: Reduce code duplication in form item rendering
* feat: Simplify gender and info checks using includes
* feat: update translate
* Revert "feat: update translate"
This reverts commit 669334c716cdfe016c67c2b4dbaf5458c3d5e93b.
* feat: address feedback from hsluoyz
* feat: Add option to use email as SAML NameID based on application config
- Updated NewSamlResponse11 to accept an application parameter.
- Conditionally set SAML NameIdentifier to user's email or username based on application.UseEmailAsNameId.
* refactor: Update GetValidationBySaml to pass application to NewSamlResponse11
- Modified GetValidationBySaml function to include application parameter in NewSamlResponse11 call.
* feat: Rename field and update logic for using Email as SAML NameID
- Renamed the `UseEmailAsNameId` field to `UseEmailAsSamlNameId` in the `Application` struct.
- Updated `NewSamlResponse` and `NewSamlResponse11` functions to use `UseEmailAsSamlNameId` for setting the NameID value.
- Modified `ApplicationEditPage.js` to reflect the field name change and update the corresponding logic.
* feat: add more algorithm support for JWT signing
* feat: add i18n support
* feat: add i18n support
* feat: optimize if statement
* fix: remove additional space line
* feat: support share application
* revert: revert i18n
* fix: improve code format
* fix: improve code format and move GetSharedOrgFromApp to string.go
* feat: add custom css style for signup page and enhance css edit in signintable
* feat: change cssStyle to customCss
* feat: auto hide <style> label, fix display problem on providers, remove auto add providers in signup page
* fix: fix indent in signin items customCss and fix providers display in signup items
* fix: fix login replace logical
In LoginPage.js, the line 92:const captchaProviderItems = this.getCaptchaProviderItems(this.props.application);
captchaProviderItems have no Captcha Provider.
* feat: add signin items table
* fix:unable to login
* feat: improve code format
* fix: fix display err on signup link
* feat: improve display of sign up link
* fix: fix the problem of Wechat Official Account login
* fix: fix code format problem
* fix: add error display and fix the code format problem
* fix: i18n problem and code format
* fixed: update application failed where have two same permission in different organization
* Update application.go
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com>
Add configuration items to the application to limit the number of logins and the login wait time after the maximum number of errors is reached
feat: #2272
fix: fixed the issue where the token parameter could be set to a negative value