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

adding an existing user to a new DB resets that user's password expiry #3249

Closed
sbts opened this issue Oct 25, 2017 · 3 comments
Closed

adding an existing user to a new DB resets that user's password expiry #3249

sbts opened this issue Oct 25, 2017 · 3 comments
Labels
bite-sized Deemed a good starting point for new contributors to learn about the code base.
Milestone

Comments

@sbts
Copy link
Member

sbts commented Oct 25, 2017

So I created a test db yesterday
Then today when I went to raise an invoice I couldn't log in!
The cause, obviously, was the password expiry was reset by importing the user to the new db

At a minimum we should have a loud warning that this is the case.
It would be better to not touch the password nor expiry when importing a user

@sbts
Copy link
Member Author

sbts commented Oct 25, 2017

This flows over into the fact that we need to better notify the user of password expiry

@einhverfr
Copy link
Member

That should only happen if you set a password. I don't think you need to set a password when importing. If you do, that's a bug.

@sbts
Copy link
Member Author

sbts commented Oct 27, 2017

@einhverfr yep, @ehuelsmann and I discussed this further in #ledgersmb
Basically, the UI offers no explanation that the password will be clobbered, and allows the password to be set.
I Haven't confirmed yet, but the password may be a required field there, at least I have the impression it is.

The simple fix is probably to disable (and ignore) the password field if import is selected.
We really should be looking at also loading the user's details from existing DB's as well rather than requiring the information to be re-entered.
I'm thinking a more "procedural" workflow there would make sense.

  • Click Add User (or hit that point in the new db setup
  • be asked for a username with "continue" button
  • cluster is checked for an existing user
    • if no existing user, ask for password and other details with "create user" button
    • if existing user
      • retrieve details
      • check that the user doesn't already exist in this DB (generate pretty error if it does and return to the start)
      • display details and prompt "import or change username"
        • if change username selected, return to the start,
        • if import selected allow edits to details with "import user" button to complete

The same process should be used within user management in the main app.

I'd suggest the entire process be written as a small unit with a corresponding dojo widget that "pops up" in a floating div. That code can then be used in both app and setup.

@ehuelsmann ehuelsmann added this to the 1.8 milestone May 17, 2020
@ehuelsmann ehuelsmann added the bite-sized Deemed a good starting point for new contributors to learn about the code base. label Sep 16, 2020
ehuelsmann added a commit to ehuelsmann/LedgerSMB that referenced this issue Sep 16, 2020
This commit clarifies the conditions as to when a password should be
entered. I've verified (on master/1.9) that the password is *not* a
required input field and that not providing a password does not reset
the expiry by itself.
ehuelsmann added a commit to ehuelsmann/LedgerSMB that referenced this issue Sep 16, 2020
This commit clarifies the conditions as to when a password should be
entered. I've verified (on master/1.9) that the password is *not* a
required input field and that not providing a password does not reset
the expiry by itself.
ehuelsmann added a commit to ehuelsmann/LedgerSMB that referenced this issue Sep 16, 2020
This commit clarifies the conditions as to when a password should be
entered. I've verified (on master/1.9) that the password is *not* a
required input field and that not providing a password does not reset
the expiry by itself.
ehuelsmann added a commit that referenced this issue Sep 16, 2020
Resolve #3249: Importing user resets password expiry
ehuelsmann added a commit that referenced this issue Sep 16, 2020
Resolve #3249: Importing user resets password expiry
ehuelsmann added a commit that referenced this issue Sep 16, 2020
Resolve #3249: Importing user resets password expiry
ehuelsmann added a commit that referenced this issue Sep 16, 2020
Resolve #3249: Importing user resets password expiry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bite-sized Deemed a good starting point for new contributors to learn about the code base.
Projects
None yet
Development

No branches or pull requests

3 participants