├── .gitignore ├── extensions ├── GoogleAuthenticator.php │ ├── users.dat │ ├── tmpl │ │ ├── login-error.php │ │ ├── login.php │ │ ├── loggedin.php │ │ ├── show-qr.php │ │ └── ask-for-otp.php │ ├── example.php │ ├── README │ ├── LICENSE │ ├── lib │ │ └── GoogleAuthenticator.php │ └── web │ │ ├── Users.php │ │ └── index.php ├── Hybrid │ ├── index.html │ ├── resources │ │ ├── index.html │ │ ├── openid_policy.html │ │ ├── openid_xrds.xml │ │ ├── openid_realm.html │ │ └── config.php.tpl │ ├── thirdparty │ │ └── index.html │ ├── Providers │ │ ├── OpenID.php │ │ ├── AOL.php │ │ ├── Foursquare.php │ │ └── Live.php │ ├── User.php │ ├── User_Contact.php │ ├── User_Activity.php │ ├── Logger.php │ ├── User_Profile.php │ ├── Error.php │ └── Storage.php ├── diceware │ ├── composer.json │ └── README.md └── mailer │ └── phpmailer │ ├── composer.json │ └── language │ ├── phpmailer.lang-zh.php │ ├── phpmailer.lang-zh_cn.php │ ├── phpmailer.lang-ch.php │ ├── phpmailer.lang-ja.php │ ├── phpmailer.lang-he.php │ ├── phpmailer.lang-no.php │ ├── phpmailer.lang-cz.php │ ├── phpmailer.lang-lt.php │ ├── phpmailer.lang-se.php │ ├── phpmailer.lang-dk.php │ ├── phpmailer.lang-hu.php │ ├── phpmailer.lang-eo.php │ ├── phpmailer.lang-tr.php │ ├── phpmailer.lang-sk.php │ ├── phpmailer.lang-ar.php │ ├── phpmailer.lang-ca.php │ ├── phpmailer.lang-fr.php │ ├── phpmailer.lang-uk.php │ ├── phpmailer.lang-ru.php │ ├── phpmailer.lang-et.php │ ├── phpmailer.lang-pl.php │ ├── phpmailer.lang-ro.php │ ├── phpmailer.lang-fo.php │ ├── phpmailer.lang-fi.php │ ├── phpmailer.lang-es.php │ ├── phpmailer.lang-de.php │ ├── phpmailer.lang-it.php │ ├── phpmailer.lang-br.php │ └── phpmailer.lang-nl.php ├── components ├── assets │ └── zocial │ │ ├── zocial-regular-webfont.eot │ │ ├── zocial-regular-webfont.ttf │ │ └── zocial-regular-webfont.woff ├── UsrAlerts.php ├── IPasswordHistoryIdentity.php ├── IEditableIdentity.php ├── DicewareAction.php ├── IOneTimePasswordIdentity.php ├── CaptchaFormBehavior.php ├── IManagedIdentity.php ├── IHybridauthIdentity.php ├── IPictureIdentity.php ├── IActivatedIdentity.php ├── ExpiredPasswordBehavior.php ├── FormModelBehavior.php └── OneTimePasswordAction.php ├── tests ├── UserIdentity.php ├── fixtures │ ├── tbl_user_used_passwords.php │ ├── init.php │ └── tbl_users.php ├── User.php ├── bootstrap.php ├── UserLoginAttempt.php ├── UserUsedPassword.php ├── UserRemoteIdentity.php ├── phpunit.xml ├── unit │ ├── ModuleTest.php │ ├── PasswordFormTest.php │ ├── RecoveryFormTest.php │ ├── ProfileFormTest.php │ └── LoginFormTest.php └── config.php ├── views ├── layouts │ └── email.php ├── default │ ├── index.php │ ├── _captcha.php │ ├── _newpassword.php │ ├── reset.php │ ├── updateProfile.php │ ├── generateOTPSecret.php │ ├── viewProfile.php │ ├── verifyOTP.php │ ├── recovery.php │ ├── _form.php │ ├── login.php │ └── _login_remote.php ├── emails │ ├── oneTimePassword.php │ ├── it │ │ ├── oneTimePassword.php │ │ ├── recovery.php │ │ └── verify.php │ ├── pl │ │ ├── oneTimePassword.php │ │ ├── recovery.php │ │ └── verify.php │ ├── recovery.php │ └── verify.php ├── hybridauth │ ├── login.php │ └── confirm.php └── manager │ └── _search.php ├── composer.json ├── migrations ├── m130703_104658_users_add_one_time_password.php ├── m130704_104658_create_table_user_used_passwords.php ├── m130706_104658_create_table_user_login_attempts.php ├── m130702_104658_create_table_user_remote_identities.php ├── m130705_104658_create_table_user_profile_pictures.php └── m130701_104658_create_table_users.php ├── messages ├── config.php ├── cs │ └── usr.php ├── es │ ├── auth.php │ └── manager.php └── pl │ ├── auth.php │ └── manager.php ├── LICENSE ├── models ├── ExampleUserUsedPassword.php ├── ExampleUserProfilePicture.php ├── ExampleUserRemoteIdentity.php ├── PasswordForm.php ├── SearchForm.php └── ExampleUserLoginAttempt.php └── controllers └── UsrController.php /.gitignore: -------------------------------------------------------------------------------- 1 | /tests/report 2 | *.swp 3 | -------------------------------------------------------------------------------- /extensions/GoogleAuthenticator.php/users.dat: -------------------------------------------------------------------------------- 1 | {"chregu":{"password":"foobar"}} -------------------------------------------------------------------------------- /components/assets/zocial/zocial-regular-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nineinchnick/yii-usr/HEAD/components/assets/zocial/zocial-regular-webfont.eot -------------------------------------------------------------------------------- /components/assets/zocial/zocial-regular-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nineinchnick/yii-usr/HEAD/components/assets/zocial/zocial-regular-webfont.ttf -------------------------------------------------------------------------------- /extensions/GoogleAuthenticator.php/tmpl/login-error.php: -------------------------------------------------------------------------------- 1 |
2 | Wrong username or password or token. 3 |
4 |5 | try again 6 |
-------------------------------------------------------------------------------- /components/assets/zocial/zocial-regular-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nineinchnick/yii-usr/HEAD/components/assets/zocial/zocial-regular-webfont.woff -------------------------------------------------------------------------------- /tests/UserIdentity.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |