aboutsummaryrefslogtreecommitdiff
path: root/go-src
diff options
context:
space:
mode:
Diffstat (limited to 'go-src')
-rw-r--r--go-src/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/go-src/user.go b/go-src/user.go
index 259c044..13b100d 100644
--- a/go-src/user.go
+++ b/go-src/user.go
@@ -38,6 +38,6 @@ func getUser(username string) User {
func validatePassword(username string, password string) bool {
// TODO: Implement hashing
f, _ := os.ReadFile(folderPaths.FileAtUsersFolder(username))
- passHash := bytes.Split(f, []byte("\n"))[0]
+ passHash := bytes.Split(f, []byte("\n"))[1]
return string(passHash) == password
}