mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 13:41:21 +00:00
GUACAMOLE-708: Remove requirement for users to have UPDATE permission on themselves for TOTP to work.
This commit is contained in:
@@ -181,12 +181,13 @@ public class UserVerificationService {
|
|||||||
|
|
||||||
// Update user object
|
// Update user object
|
||||||
try {
|
try {
|
||||||
context.getUserDirectory().update(self);
|
context.getPrivileged().getUserDirectory().update(self);
|
||||||
}
|
}
|
||||||
catch (GuacamoleSecurityException e) {
|
catch (GuacamoleSecurityException e) {
|
||||||
logger.info("User \"{}\" cannot store their TOTP key as they "
|
logger.info("User \"{}\" cannot store their TOTP key as they "
|
||||||
+ "lack permission to update their own account. TOTP "
|
+ "lack permission to update their own account and the "
|
||||||
+ "will be disabled for this user.",
|
+ "TOTP extension was unable to obtain privileged access. "
|
||||||
|
+ "TOTP will be disabled for this user.",
|
||||||
self.getIdentifier());
|
self.getIdentifier());
|
||||||
logger.debug("Permission denied to set TOTP key of user "
|
logger.debug("Permission denied to set TOTP key of user "
|
||||||
+ "account.", e);
|
+ "account.", e);
|
||||||
|
Reference in New Issue
Block a user