From 5bc8077c544560aab730c7d9b953f77ac9a55c7e Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Wed, 19 Mar 2025 10:15:36 +0000 Subject: [PATCH] Fix type change of auth.Request.Password --- login/state.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/login/state.go b/login/state.go index 8e0fdbe2..aea85df0 100644 --- a/login/state.go +++ b/login/state.go @@ -133,14 +133,14 @@ func (l *loginState) authRequestFromRequest(req *http.Request, deviceInfo *userm l.Password = req.FormValue("password") return &auth.Request{ Username: l.Username, - Password: []byte(l.Password), + Password: l.Password, DeviceInfo: deviceInfo, }, nil case State2FA_OTP: return &auth.Request{ Username: l.Username, - Password: []byte(l.Password), + Password: l.Password, DeviceInfo: deviceInfo, OTP: req.FormValue("otp"), }, nil @@ -153,7 +153,7 @@ func (l *loginState) authRequestFromRequest(req *http.Request, deviceInfo *userm } return &auth.Request{ Username: l.Username, - Password: []byte(l.Password), + Password: l.Password, DeviceInfo: deviceInfo, WebAuthnSession: l.AuthResponse.WebAuthnSession, WebAuthnResponse: webauthnResp, -- GitLab