PHP Class twofactor_gauthenticator, twofactor_gauthenticator

Inheritance: extends rcube_plugin
显示文件 Open project: alexandregz/twofactor_gauthenticator

Public Methods

Method Description
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

Private Methods

Method Description
__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

Method Details

checkCode() public method

used with ajax
public checkCode ( )

check_2FAlogin() public method

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

init() public method

public init ( )

login_after() public method

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

popup_msg_enrollment() public method

ripped from new_user_dialog plugin

twofactor_gauthenticator_form() public method

form config

twofactor_gauthenticator_init() public method

show config

twofactor_gauthenticator_save() public method

save config