A user must have the ability to remove their own account.
Basic Path
The use case starts when a user indicates that he/she wants to remove their account.
The user navigates to the manage account area.
The system redirects the user to the manage account options.
The user would have to click on 'Remove my account' button.
The system requests the current password to verify that the account deletion is secure.
The user enters a current password.
The system checks that the username corresponds to the existing password (preferably a secure password hash using bCrypt library) in the database.
A successful match is found and therefore opens an alert box to confirm if the user would like to remove their account.
The user confirms they would like to delete their account.
The system identifies the account and removes it from the database.
The system redirects the user to the homepage and displays the message the account has been deleted.
Alternative Paths
Step 6: If the password does not match the existing password hash, the system displays an error message and the use case goes back to step 5.
Exception Paths
The user can cancel the operation at any time.
Preconditions
The user must be logged in.
Postconditions
The user is now deleted and redirected to the homepage they must be logged in to access the website.
A user must have the ability to remove their own account.
Basic Path
The use case starts when a user indicates that he/she wants to remove their account. The user navigates to the manage account area. The system redirects the user to the manage account options. The user would have to click on 'Remove my account' button. The system requests the current password to verify that the account deletion is secure. The user enters a current password. The system checks that the username corresponds to the existing password (preferably a secure password hash using bCrypt library) in the database. A successful match is found and therefore opens an alert box to confirm if the user would like to remove their account. The user confirms they would like to delete their account. The system identifies the account and removes it from the database. The system redirects the user to the homepage and displays the message the account has been deleted. Alternative Paths
Step 6: If the password does not match the existing password hash, the system displays an error message and the use case goes back to step 5.
Exception Paths
The user can cancel the operation at any time.
Preconditions
The user must be logged in.
Postconditions
The user is now deleted and redirected to the homepage they must be logged in to access the website.