From 42717bf38db8dabbf59a399d8d0748494feae6f9 Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Sat, 30 May 2020 23:14:57 +0800 Subject: [PATCH 1/4] Create file UserDoc.md and add an entry about resetting password. --- UserDoc.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 UserDoc.md diff --git a/UserDoc.md b/UserDoc.md new file mode 100644 index 0000000..9d023d4 --- /dev/null +++ b/UserDoc.md @@ -0,0 +1,15 @@ +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. + From 8d2cdbf8583f8c600743e63efaf06bd96611b815 Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Sat, 30 May 2020 23:21:11 +0800 Subject: [PATCH 2/4] UserDoc.md: add title for this document. --- UserDoc.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UserDoc.md b/UserDoc.md index 9d023d4..4f03ca7 100644 --- a/UserDoc.md +++ b/UserDoc.md @@ -1,3 +1,7 @@ +LRR User Documentation +====================== + + Resetting password ------------------- From 4afe46141b7fb12c51039398b3a7315b811502ee Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Mon, 1 Jun 2020 10:54:53 +0800 Subject: [PATCH 3/4] Created a doc folder and move UserDoc.md to it. --- UserDoc.md => doc/UserDoc.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename UserDoc.md => doc/UserDoc.md (100%) diff --git a/UserDoc.md b/doc/UserDoc.md similarity index 100% rename from UserDoc.md rename to doc/UserDoc.md From e742e9f3fb92d8807181de671b8877cd66bfc859 Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Mon, 1 Jun 2020 16:08:59 +0800 Subject: [PATCH 4/4] UserDoc.md: add modification date information. --- doc/UserDoc.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/UserDoc.md b/doc/UserDoc.md index 4f03ca7..4ab07c1 100644 --- a/doc/UserDoc.md +++ b/doc/UserDoc.md @@ -17,3 +17,5 @@ After that, issue the following commands in the mysql prompt. 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*