promocat / yii2-twofa

A Yii2 module bringing 2FA support
MIT License
6 stars 4 forks source link

Examples for pages 'enable-two-fa', 'login-verification' #3

Closed nazbav closed 1 year ago

nazbav commented 1 year ago

Please publish examples for templates 'enable-two-fa', 'login-verification'

BrandonTilstra commented 1 year ago

I've added an "examples" folder and removed the old examples.php. This is the best I could do. This is meant to be a barebones package that should be implemented into a working authentication process. The enable-two-fa and login-verifcation views should be heavily modified and should just be seen als "inspiration".

Security wise, I recommend also validating the users current password when enabling/disabling 2FA for a user. This is something you should implement yourself.

nazbav commented 1 year ago

Thx!

But messages category "twofa" in Yii:t("twofa",...) it is not provided together with the extension?