aboutsummaryrefslogtreecommitdiff
path: root/internal/context/auth.go
diff options
context:
space:
mode:
authorJoe Chen <jc@unknwon.io>2022-10-22 14:56:25 +0800
committerGitHub <noreply@github.com>2022-10-22 14:56:25 +0800
commit7cbd84d5b3d4af36e4afcf7af9374bc765f6bb9c (patch)
tree74f4fd7f5df3af0680ddbb16c3c5f1b4985e5eb2 /internal/context/auth.go
parentc502dc6ed888a4cf2c8b36176585f4166536ab6d (diff)
refactor(db): rename `User.Passwd` to `User.Password` (#7196)
Diffstat (limited to 'internal/context/auth.go')
-rw-r--r--internal/context/auth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/context/auth.go b/internal/context/auth.go
index cba68706..9cb37863 100644
--- a/internal/context/auth.go
+++ b/internal/context/auth.go
@@ -185,7 +185,7 @@ func authenticatedUser(ctx *macaron.Context, sess session.Store) (_ *db.User, is
u := &db.User{
Name: webAuthUser,
Email: gouuid.NewV4().String() + "@localhost",
- Passwd: webAuthUser,
+ Password: webAuthUser,
IsActive: true,
}
if err = db.CreateUser(u); err != nil {