Fixes #106 - adds Google Authenticator support (#2842)

* refactor to clean up LDAP login, and make the login method easier to handle.

* Login refactor cleanup

* Google 2FA package

* Adds Google Authenticator two-factor

* Removed unused blade

* Added optin setting in profile

* Removed dumb comments

* Made lock_passwords check more consistent

* Additional two factor strings

* Lock passwords check

* Display feature disabled text if in demo mode

* Two factor admin reset options

* Translation strings
This commit is contained in:
snipe
2016-10-29 05:50:55 -07:00
committed by GitHub
parent 3a8edfdf58
commit cea255995c
110 changed files with 1416 additions and 320 deletions
@@ -104,6 +104,22 @@ return array(
'width_w' => 'an',
'height_h' => 'al',
'text_pt' => 'pt',
'two_factor' => 'Two Factor Authentication',
'two_factor_secret' => 'Two-Factor Code',
'two_factor_enrollment' => 'Two-Factor Enrollment',
'two_factor_enabled_text' => 'Enable Two Factor',
'two_factor_reset' => 'Reset Two-Factor Secret',
'two_factor_reset_help' => 'This will force the user to enroll their device with Google Authenticator again. This can be useful if their currently enrolled device is lost or stolen. ',
'two_factor_reset_success' => 'Two factor device successfully reset',
'two_factor_reset_error' => 'Two factor device reset failed',
'two_factor_enabled_warning' => 'Enabling two-factor if it is not currently enabled will immediately force you to authenticate with a Google Auth enrolled device. You will have the ability to enroll your device if one is not currently enrolled.',
'two_factor_enabled_help' => 'This will turn on two-factor authentication using Google Authenticator.',
'two_factor_optional' => 'Optional (Users can enable or disable)',
'two_factor_required' => 'Required for all users',
'two_factor_disabled' => 'Disabled',
'two_factor_enter_code' => 'Enter Two-Factor Code',
'two_factor_config_complete' => 'Submit Code',
'two_factor_enrollment_text' => "Two factor authentication is required, however your device has not been enrolled yet. Open your Google Authenticator app and scan the QR code below to enroll your device. Once you've enrolled your device, enter the code below",
'left' => 'izquierda',
'right' => 'derecha',
'top' => 'arriba',
+2 -1
View File
@@ -93,7 +93,7 @@
'list_all' => 'Listar Todo',
'loading' => 'Cargando',
'lock_passwords' => 'Este campo no puede ser editado en ésta instalación.',
'feature_disabled' => 'Esta funcionalidad ha sido deshabilitada para esta instalación.',
'feature_disabled' => 'This feature has been disabled for the demo installation.',
'location' => 'Localización',
'locations' => 'Localizaciones',
'logout' => 'Desconexión',
@@ -151,6 +151,7 @@
'status_labels' => 'Etiquetas Estados',
'status' => 'Estados',
'suppliers' => 'Proveedores',
'submit' => 'Submit',
'total_assets' => 'Equipos',
'total_licenses' => 'licencias totales',
'total_accessories' => 'total accessories',