----- Messaggio originale -----
> Da: "ccoborgers" <[email protected]>
> A: [email protected]
> Inviato: Lunedì, 16 marzo 2020 13:02:35
> Oggetto: Is it possible to reset otp 2fa data for one single user

> As the subject says:
> Is it possible to reset the data for otp 2fa for one single user so this
> user has to scan the qr code again?
> 
>

Hi Oliver, for this kink of problem, normaly, I use these script.
 
# cat /opt/localbin/resetTOTP.sh 
#!/bin/bash

if [ "$#" != "1" ]
then
        echo Usare $0 NOME_UTENTE
        exit 0
fi
/usr/bin/mysql -u root -p guacamole_db -Bse "update guacamole_user_attribute 
set attribute_value = 'false' where attribute_name='guac-totp-key-confirmed' 
and user_id=(select entity_id from guacamole_entity where name='$1');"

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to