1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-04 09:51:46 +00:00

fix: login codes sent by an admin incorrectly requires a device token

This commit is contained in:
Elias Schneider
2026-01-07 16:13:18 +01:00
parent 2f25861d15
commit 03f9be0d12

View File

@@ -461,7 +461,7 @@ func (s *UserService) RequestOneTimeAccessEmailAsAdmin(ctx context.Context, user
return &common.OneTimeAccessDisabledError{}
}
_, err := s.requestOneTimeAccessEmailInternal(ctx, userID, "", ttl, true)
_, err := s.requestOneTimeAccessEmailInternal(ctx, userID, "", ttl, false)
return err
}