* feat: support define what Casdoor pages an org admin can see
* feat: remove useless code
* fix: fix NavItemNodes i18next invalid
* fix: only global admin can edit navItems
* fix: move navItem tree to extra file
* 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
* 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>
* 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: support share application
* revert: revert i18n
* fix: improve code format
* fix: improve code format and move GetSharedOrgFromApp to string.go
* feat: support custom header logo
* feat: add i18n
* feat: preview default logo when field is empty
* feat: improve logo setting and display logic
* feat: change logoLight to logo
* feat: add regex support for account item
* feat: use reflect to process user field
* fix: fix lint problem
* feat: improve code format and fix reflect error
* 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
* Support uploading roles and permissions via xlsx file.
* Template xlsx file for uploading users and permissions.
* reformat according to gofumpt.
* fix typo.
* add password complexity options to organization edit page.
* add password complexity options to organization edit page.
* Fixed Typos.
* Fixed Typos.
* feat:add password complexity options to organization edit page
* Auto generate i18n fields.
* Refactor code according to instructions
* Support autocheck passwd complexity in frontend when setting passwd in user edit page.
* feat:Backend Support for password validation in signup and forget page.
* feat:Frontend Support for password validation in signup and forget page.
* Add default password complex option & Update historical empty filed with default option.
* Migrator for field `password_complex_options` in org table.
* feat: support frontend password complex option check in user_edit/forget/signup page.
* frontend update for user edit page
* update i18n file
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com>
* rebase master
* feat: add group in userEditPage
* feat: use id as the pk
* feat: add groups item in user
* feat: add tree component
* rebase
* feat: ui
* fix: fix some bug
* fix: route
* fix: ui
* fix: improve ui
* feat: fix function CheckAccountItemModifyRule
* fix: admin changes its own username
* fix: current user changes its own username
* Update user.go
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com>
* fix: fixed failed to update information when name duplicate
* fix: Use GetOwnerAndNameFromId and GetId functions instead of split
* Update organization.go
* Update role.go
---------
Co-authored-by: hsluoyz <hsluoyz@qq.com>