c7588fe5fc5898bab0e0406309544294c09fae63
Bernd Wurst Google-Auth-Token setzen un...

Bernd Wurst authored 12 years ago

modules/googleauth/test.php   1) <?php
modules/googleauth/test.php   2) /*
modules/googleauth/test.php   3) This file belongs to the Webinterface of schokokeks.org Hosting
modules/googleauth/test.php   4) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 2 years ago

modules/webmailtotp/test.php  5) Written by schokokeks.org Hosting, namely
Bernd Wurst Google-Auth-Token setzen un...

Bernd Wurst authored 12 years ago

modules/googleauth/test.php   6)   Bernd Wurst <bernd@schokokeks.org>
modules/googleauth/test.php   7)   Hanno Böck <hanno@schokokeks.org>
modules/googleauth/test.php   8) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 2 years ago

modules/webmailtotp/test.php  9) This code is published under a 0BSD license.
Bernd Wurst Google-Auth-Token setzen un...

Bernd Wurst authored 12 years ago

modules/googleauth/test.php  10) 
modules/googleauth/test.php  11) Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code.
modules/googleauth/test.php  12) */
modules/googleauth/test.php  13) 
modules/googleauth/test.php  14) require_once('inc/base.php');
modules/googleauth/test.php  15) require_once('inc/icons.php');
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/webmailtotp/test.php 16) require_role([ROLE_SYSTEMUSER, ROLE_MAILACCOUNT, ROLE_VMAIL_ACCOUNT]);
Bernd Wurst Google-Auth-Token setzen un...

Bernd Wurst authored 12 years ago

modules/googleauth/test.php  17) 
Bernd Wurst Umbenennung Google-Auth nac...

Bernd Wurst authored 12 years ago

modules/webmailtotp/test.php 18) require_once('totp.php');
Bernd Wurst Google-Auth-Token setzen un...

Bernd Wurst authored 12 years ago

modules/googleauth/test.php  19) 
Hanno Böck codingstyle, spaces between...

Hanno Böck authored 1 year ago

modules/webmailtotp/test.php 20) $section = 'webmailtotp_overview';
Bernd Wurst Umbenennung Google-Auth nac...

Bernd Wurst authored 12 years ago

modules/webmailtotp/test.php 21) title('Test der Zwei-Faktor-Anmeldung');
Bernd Wurst Google-Auth-Token setzen un...

Bernd Wurst authored 12 years ago

modules/googleauth/test.php  22) 
Bernd Wurst löschen der OTP-Authentifiz...

Bernd Wurst authored 12 years ago

modules/googleauth/test.php  23) if (isset($_REQUEST['username'])) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/webmailtotp/test.php 24)     $username = $_REQUEST['username'];
modules/webmailtotp/test.php 25)     $webmailpw = $_REQUEST['webmailpass'];
modules/webmailtotp/test.php 26)     $ga_code = $_REQUEST['totp_code'];
Hanno remove whitespace in empty...

Hanno authored 6 years ago

modules/webmailtotp/test.php 27) 
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

modules/webmailtotp/test.php 28)     if (!strstr($username, '@')) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/webmailtotp/test.php 29)         // Default-Domainname
Hanno Böck Spaces between string conca...

Hanno Böck authored 1 year ago

modules/webmailtotp/test.php 30)         $username = $username . '@' . config('masterdomain');
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/webmailtotp/test.php 31)     }
Bernd Wurst Füge Masterdomain automatis...

Bernd Wurst authored 12 years ago

modules/googleauth/test.php  32) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/webmailtotp/test.php 33)     $success = true;
Hanno remove whitespace in empty...

Hanno authored 6 years ago

modules/webmailtotp/test.php 34) 
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

modules/webmailtotp/test.php 35)     if (!check_webmail_password($username, $webmailpw)) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/webmailtotp/test.php 36)         input_error('Das Webmail-Passwort hat nicht gestimmt.');
modules/webmailtotp/test.php 37)         $success = false;
modules/webmailtotp/test.php 38)     }
Bernd Wurst löschen der OTP-Authentifiz...

Bernd Wurst authored 12 years ago

modules/googleauth/test.php  39) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/webmailtotp/test.php 40)     if (check_locked($username)) {
modules/webmailtotp/test.php 41)         input_error('Aufgrund einiger Fehlversuche wurde dieses Konto übergangsweise deaktiviert. Bitte warten Sie ein paar Minuten.');
modules/webmailtotp/test.php 42)         $success = false;
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

modules/webmailtotp/test.php 43)     } elseif (!check_totp($username, $ga_code)) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/webmailtotp/test.php 44)         input_error('Der TOTP-Code wurde nicht akzeptiert.');
modules/webmailtotp/test.php 45)         $success = false;
modules/webmailtotp/test.php 46)     }
Bernd Wurst löschen der OTP-Authentifiz...

Bernd Wurst authored 12 years ago

modules/googleauth/test.php  47) 
Bernd Wurst blacklist für eingegebene C...

Bernd Wurst authored 12 years ago

modules/googleauth/test.php  48) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/webmailtotp/test.php 49)     if ($success) {
Hanno Böck Spaces between string conca...

Hanno Böck authored 1 year ago

modules/webmailtotp/test.php 50)         output('<p>' . icon_ok() . ' Der Test war erfolgreich!');
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/webmailtotp/test.php 51)     } else {
Hanno Böck Spaces between string conca...

Hanno Böck authored 1 year ago

modules/webmailtotp/test.php 52)         output('<p>' . icon_error() . ' Der Test war leider nicht erfolgreich.');
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/webmailtotp/test.php 53)     }
Bernd Wurst löschen der OTP-Authentifiz...

Bernd Wurst authored 12 years ago

modules/googleauth/test.php  54) 
modules/googleauth/test.php  55) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/webmailtotp/test.php 56)     output('<h3>Weiterer Test</h3>');
Bernd Wurst Google-Auth-Token setzen un...

Bernd Wurst authored 12 years ago

modules/googleauth/test.php  57) } else {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/webmailtotp/test.php 58)     $username = '';
modules/webmailtotp/test.php 59)     output('<p>Geben Sie hier die Login-Daten ein um Ihren Zugang zu testen.</p>');
Bernd Wurst Google-Auth-Token setzen un...

Bernd Wurst authored 12 years ago

modules/googleauth/test.php  60) }
modules/googleauth/test.php  61) 
Hanno Böck HTML fixes and autocomplete...

Hanno Böck authored 10 months ago

modules/webmailtotp/test.php 62) $form = '<p>Ihr Webmail-Benutzername: <input type="text" name="username" value="' . filter_output_html($username) . '"></p>
modules/webmailtotp/test.php 63) <p>Ihr neues Webmail-Passwort: <input type="password" name="webmailpass"></p>
modules/webmailtotp/test.php 64) <p>Der aktuellste Einmal-Code: <input type="text" name="totp_code" autocomplete="one-time-code" inputmode="numeric"></p>
modules/webmailtotp/test.php 65) <p><input type="submit" value="Prüfen!"></p>';
Bernd Wurst Google-Auth-Token setzen un...

Bernd Wurst authored 12 years ago

modules/googleauth/test.php  66) 
modules/googleauth/test.php  67)