summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--model/mysql/users.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/model/mysql/users.go b/model/mysql/users.go
index f07f472..017d34f 100644
--- a/model/mysql/users.go
+++ b/model/mysql/users.go
@@ -64,7 +64,7 @@ func (con *MySQLDBCon) UserByMail(email string) (model.User, error) {
func (u *User) ID() model.DBID { return u.id }
func (u *User) Email() string { return u.email }
-func (u *User) PWHash() []byte { return []byte(u.PWHash()) }
+func (u *User) PWHash() []byte { return []byte(u.passwd) }
func (u *User) Active() bool { return u.active }
func (u *User) ActivationCode() string { return u.acCode }