PHP 클래스 twofactor_gauthenticator, twofactor_gauthenticator

상속: extends rcube_plugin
파일 보기 프로젝트 열기: alexandregz/twofactor_gauthenticator

공개 메소드들

메소드 설명
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