Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(api): support ignore password if login source type is LDAP for creating user API #28491

Merged
merged 4 commits into from
Dec 19, 2023

Commits on Dec 18, 2023

  1. refactor: refactor user authentication and data validation

    - Modify the `Password` field in `CreateUserOption` struct to remove the `Required` tag
    - Update the `v1_json.tmpl` template to include the `email` field and remove the `password` field
    
    Signed-off-by: appleboy <[email protected]>
    appleboy committed Dec 18, 2023
    Configuration menu
    Copy the full SHA
    cb31e62 View commit details
    Browse the repository at this point in the history
  2. feat: add password validation to CreateUser function

    - Add validation for password requirement in CreateUser function
    
    Signed-off-by: appleboy <[email protected]>
    appleboy committed Dec 18, 2023
    Configuration menu
    Copy the full SHA
    4d14927 View commit details
    Browse the repository at this point in the history
  3. feat: refactor user authentication and password handling in CreateUse…

    …r function
    
    - Modify the condition for `u.LoginType` and `form.Password` in `CreateUser` function
    - Add an empty line in `CreateUser` function
    
    Signed-off-by: Bo-Yi Wu <[email protected]>
    appleboy committed Dec 18, 2023
    Configuration menu
    Copy the full SHA
    dea9c50 View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2023

  1. Configuration menu
    Copy the full SHA
    6c8a15c View commit details
    Browse the repository at this point in the history