mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
Merge 1.0.0 changes back to master.
This commit is contained in:
@@ -29,6 +29,7 @@ import java.util.Map;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import org.apache.guacamole.GuacamoleClientException;
|
||||
import org.apache.guacamole.GuacamoleException;
|
||||
import org.apache.guacamole.GuacamoleSecurityException;
|
||||
import org.apache.guacamole.GuacamoleUnsupportedException;
|
||||
import org.apache.guacamole.auth.totp.conf.ConfigurationService;
|
||||
import org.apache.guacamole.auth.totp.form.AuthenticationCodeField;
|
||||
@@ -182,6 +183,15 @@ public class UserVerificationService {
|
||||
try {
|
||||
context.getUserDirectory().update(self);
|
||||
}
|
||||
catch (GuacamoleSecurityException e) {
|
||||
logger.info("User \"{}\" cannot store their TOTP key as they "
|
||||
+ "lack permission to update their own account. TOTP "
|
||||
+ "will be disabled for this user.",
|
||||
self.getIdentifier());
|
||||
logger.debug("Permission denied to set TOTP key of user "
|
||||
+ "account.", e);
|
||||
return false;
|
||||
}
|
||||
catch (GuacamoleUnsupportedException e) {
|
||||
logger.debug("Extension storage for user is explicitly read-only. "
|
||||
+ "Cannot update attributes to store TOTP key.", e);
|
||||
|
Reference in New Issue
Block a user