Merge pull request #40 from lanlab-org/Hui-UserDoc

Create file UserDoc.md and add an entry about resetting password.
SIMPLICITY_Bug-189_Course_Delete_btn
WARD 2020-06-04 14:33:18 +03:00 committed by GitHub
commit 0bba3d2bb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

21
doc/UserDoc.md Normal file
View File

@ -0,0 +1,21 @@
LRR User Documentation
======================
Resetting password
-------------------
We can reset a user's password by directly modifying the MySQL database table called `users_table`. More specifically, we delete that user's information from `users_table` so that the user could sign up again. Suppose the user's student number is 201131129138.
To do so, LRR administrator logs in to MySQL using the following command: `mysql -u username -p`. Type the correct password to access the MySQL database.
After that, issue the following commands in the mysql prompt.
- `use lrr;`
- `delete from users_table where Student_ID="201131129138";`
The first one uses a database called lrr in MySQL. The second one deletes a record from `users_table` where the student number is 201131129138.
*Last modified on 1 June 2020 by Hui*