documentation finished
This commit is contained in:
parent
40abac78bd
commit
ae335a1511
10 changed files with 105 additions and 48 deletions
|
@ -104,3 +104,9 @@ func (db *Database) UserIsLoggedIn(username string) bool {
|
|||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (db *Database) ChangeUserPassword(username string, password string) {
|
||||
user := User{Username: username}
|
||||
db.ORM.Where("username = ?", username).Find(&user)
|
||||
db.ORM.Model(&user).Update("password", password)
|
||||
}
|
||||
|
|
Reference in a new issue