* feat: only check 30 days data
* refactor: refactor GetDashboard to reduce code line
* refactor: refactor GetDashboard to reduce code line
* refactor: remove unused where
* fix: fix error code
* fix: Resolve the issue mentioned in #3392
* fix: Change checkLdapUserPassword to CheckLdapUserPassword.
* fix: the issue mentioned by hsluoyz.
* fix: Check if the user parameter is nil
* fix: use existing i18n message
* feat: Force users to change their passwords after 3/6/12 months
* feat: Check if the password has expired by using the last_change_password_time field added to the user table
* feat: Use the created_time field of the user table to aid password expiration checking
* feat: Rename variable
* 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
* fix(organization): ensure count includes shared organizations
Adjust the `GetOrganizationCount` function to account for shared organizations by adding
an additional parameter and modifying the count query accordingly. This change ensures that
the organization count correctly reflects shared organizations within the system.
* ```fix(organization): optimize GetOrganizationCount query
Refactor the GetOrganizationCount function to use a more efficient search
method by leveraging the 'is_shared' field directly in the query condition.
This change improves the performance for counting organizations by avoiding
unnecessary iteration over potentially large result sets.
```
---------
Co-authored-by: CuiJing <cuijing@tul.com.cn>
* 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: improve the logic of the permission check code for users to modify account items
* fix: add skip operation for deleted account items in update-user API
* fix: add the function of removing deleted account item
* fix: login will prioritize the use of password set in casdoor and use ldap when use LDAP option in login form or user never change their password in casdoor after sync
* fix: promote if statement
* 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