mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-770: Regenerate code when field is empty.
This commit is contained in:
@@ -108,7 +108,7 @@ public class UserVerificationService {
|
|||||||
|
|
||||||
// If no key is defined, attempt to generate a new key
|
// If no key is defined, attempt to generate a new key
|
||||||
String secret = attributes.get(TOTPUser.TOTP_KEY_SECRET_ATTRIBUTE_NAME);
|
String secret = attributes.get(TOTPUser.TOTP_KEY_SECRET_ATTRIBUTE_NAME);
|
||||||
if (secret == null) {
|
if (secret == null || secret.isEmpty()) {
|
||||||
|
|
||||||
// Generate random key for user
|
// Generate random key for user
|
||||||
TOTPGenerator.Mode mode = confService.getMode();
|
TOTPGenerator.Mode mode = confService.getMode();
|
||||||
|
Reference in New Issue
Block a user