diff options
Diffstat (limited to 'go-src/user.go')
| -rw-r--r-- | go-src/user.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/go-src/user.go b/go-src/user.go index 9b49fd1..be01b3e 100644 --- a/go-src/user.go +++ b/go-src/user.go @@ -22,7 +22,6 @@ const ( ) func (u User) ValidatePassword(password string) bool { - // TODO: Implement hashing f, _ := os.ReadFile(folderPaths.FileAtUsersFolder(u.Username)) passHash := bytes.Split(f, []byte("\n"))[1] return string(passHash) == password @@ -64,7 +63,6 @@ func logoutUser() { } func createUser(data []string) { - // TODO: Password hashing f, _ := os.Create(folderPaths.FileAtUsersFolder(data[0])) f.WriteString(data[0] + "\n" + data[1] + "\n" + data[2]) f.Close() |
