You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CKAN version: 2.10.3
Python version: 3.9.6
OS: Mac
Describe the bug
When creating a sysadmin user for an install of CKAN on my local machine and it fails, the user is still created in the user table.
Steps to reproduce
Steps to reproduce the behavior:
With the virtual environment activated, run ckan sysadmin add <admin>
There is a prompt to enter an email, enter any email
There is a prompt to enter a password, enter in a password that does NOT meet the criteria (longer than 8 characters)
Confirm the password
There is a prompt with the password criteria which needs to be more than 8 characters and that the user flow has been aborted.
Now re-run ckan sysadmin add <admin>
Enter an email
Enter a valid password with at least 8 characters
Confirm the password
Then you should see a note that says:
None - {'name': ['That login name is not available.']}
Aborted!
Once you create the a sysadmin user, run the app then go to the admin panel and view users to confirm that the first user you tried to create was created even though the user creation flow was aborted.
Expected behavior
If the user creation flow was aborted, a user should not be created.
Additional details
This is a screenshot of the 2nd time attempting to create a user with the same name which illustrated that the first time it was created even though the user creation flow was aborted.
The text was updated successfully, but these errors were encountered:
Hi @andrewtpham ,
When i tried the same steps on my machine window, it is working fine.
Is it Os specific issue.? Could you please provide more information, if any?
CKAN version
CKAN version: 2.10.3
Python version: 3.9.6
OS: Mac
Describe the bug
When creating a
sysadmin
user for an install of CKAN on my local machine and it fails, the user is still created in the user table.Steps to reproduce
Steps to reproduce the behavior:
ckan sysadmin add <admin>
ckan sysadmin add <admin>
Expected behavior
If the user creation flow was aborted, a user should not be created.
Additional details
This is a screenshot of the 2nd time attempting to create a user with the same name which illustrated that the first time it was created even though the user creation flow was aborted.
The text was updated successfully, but these errors were encountered: