diff options
Diffstat (limited to 'userapi/internal/user_api.go')
-rw-r--r-- | userapi/internal/user_api.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/userapi/internal/user_api.go b/userapi/internal/user_api.go index a126dc87..fd73bf62 100644 --- a/userapi/internal/user_api.go +++ b/userapi/internal/user_api.go @@ -939,11 +939,12 @@ func (a *UserInternalAPI) QueryAccountByPassword(ctx context.Context, req *api.Q return nil case bcrypt.ErrHashTooShort: // user exists, but probably a passwordless account return nil - default: + case nil: res.Exists = true res.Account = acc return nil } + return err } func (a *UserInternalAPI) SetDisplayName(ctx context.Context, localpart string, serverName spec.ServerName, displayName string) (*authtypes.Profile, bool, error) { |