PHP Класс twofactor_gauthenticator, twofactor_gauthenticator

Наследование: extends rcube_plugin
Показать файл Открыть проект

Открытые методы

Метод Описание
checkCode ( ) used with ajax
check_2FAlogin ( $p ) capture webpage if someone try to use ?_task=mail|addressbook|settings|.
init ( )
login_after ( $args ) Use the form login, but removing inputs with jquery and action (see twofactor_gauthenticator_form.js)
popup_msg_enrollment ( ) ripped from new_user_dialog plugin
twofactor_gauthenticator_form ( ) form config
twofactor_gauthenticator_init ( ) show config
twofactor_gauthenticator_save ( ) save config

Приватные методы

Метод Описание
__checkCode ( $code, $secret = null ) returns boolean
__consumeRecoveryCode ( $code )
__cookie ( $set = TRUE ) remember option by https://github.com/corrideat/
__createSecret ( ) returns string
__exitSession ( )
__get2FAconfig ( )
__getSecret ( ) returns string
__goingRoundcubeTask ( $task = 'mail', $action = null ) redirect to some RC task and remove 'login' user pref
__isRecoveryCode ( $code )
__logError ( ) log error into $_logs_file directory
__set2FAconfig ( $data ) we can set array to NULL to remove

Описание методов

checkCode() публичный Метод

used with ajax
public checkCode ( )

check_2FAlogin() публичный Метод

.. and check auth code
public check_2FAlogin ( $p )

init() публичный Метод

public init ( )

login_after() публичный Метод

Use the form login, but removing inputs with jquery and action (see twofactor_gauthenticator_form.js)
public login_after ( $args )

popup_msg_enrollment() публичный Метод

ripped from new_user_dialog plugin

twofactor_gauthenticator_form() публичный Метод

form config

twofactor_gauthenticator_init() публичный Метод

show config

twofactor_gauthenticator_save() публичный Метод

save config