-
Notifications
You must be signed in to change notification settings - Fork 10
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
Minimal Admin Dashboard for Adding Users #119
Comments
We could create another, "resetpassword," table which forces a user to go to a reset password process upon first login. If the passwordresetneeded boolean is not cleared in postgres, then user is not able to visit other parts of the site. |
Remaining To Do List on this Task: BackendAdmin Validation Function:✅ Implement a Golang validation function that verifies a user is an ADMIN before allowing them to perform the AddUser function.
Change Password Route:✅ Create a /changepassword route in the server that handles password change requests. Change Password Function:Develop a ChangePassword function in Golang that:✅ Validates the user's current session. Password Change Validation Function:✅ Create a ChangePasswordNeeded validation function to check if the user needs to change their password. ✅ Ensure that secure actions such as create, trade, etc., cannot be undertaken until the user has changed their password. FrontendUpdate Routes for Secure Actions:✅ Modify routes to restrict access to certain actions like /create, ensuring they are inaccessible if the user needs to change their password. ChangePassword.jsx Layout:Design and implement a ChangePassword.jsx layout that includes:✅ An input field for the new password. Modify Sidebar for Conditional Access✅ Adjust the sidebar to show only the "Change Password" option if the user has the MustChangePassword flag set to true. ✅ Set up redirection to the /profile page or another appropriate page once the password change is successfully completed. ✅ Implement user feedback mechanisms for both successful and unsuccessful password updates, such as notifications or alerts. Testing and Validation:✅ Thoroughly test the new password change feature to ensure it works seamlessly across different scenarios and handles edge cases properly. Documentation:
|
We should allow the following dashboard for an admin only.
This should also allow setting a Display Name, and a randomly selected Emoji.
The text was updated successfully, but these errors were encountered: