96649f21ba18d07757afa9d98998f7a22c0d86a3
Bernd Wurst Google-Auth-Token setzen un...

Bernd Wurst authored 11 years ago

modules/googleauth/generate.php   1) <?php
modules/googleauth/generate.php   2) /*
modules/googleauth/generate.php   3) This file belongs to the Webinterface of schokokeks.org Hosting
modules/googleauth/generate.php   4) 
Bernd Wurst Copyright year update

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 11 years ago

modules/googleauth/generate.php   6)   Bernd Wurst <bernd@schokokeks.org>
modules/googleauth/generate.php   7)   Hanno Böck <hanno@schokokeks.org>
modules/googleauth/generate.php   8) 
modules/googleauth/generate.php   9) To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
modules/googleauth/generate.php  10) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

modules/webmailtotp/generate.php 11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see
Bernd Wurst Google-Auth-Token setzen un...

Bernd Wurst authored 11 years ago

modules/googleauth/generate.php  12) http://creativecommons.org/publicdomain/zero/1.0/
modules/googleauth/generate.php  13) 
modules/googleauth/generate.php  14) 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/generate.php  15) */
modules/googleauth/generate.php  16) 
modules/googleauth/generate.php  17) require_once('inc/base.php');
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 2 years ago

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

Bernd Wurst authored 11 years ago

modules/googleauth/generate.php  19) 
Bernd Wurst Umbenennung Google-Auth nac...

Bernd Wurst authored 11 years ago

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

Bernd Wurst authored 11 years ago

modules/googleauth/generate.php  21) 
modules/googleauth/generate.php  22) $username = urldecode($_REQUEST['username']);
modules/googleauth/generate.php  23) 
modules/googleauth/generate.php  24) $oldpw = $_REQUEST['oldpw'];
modules/googleauth/generate.php  25) $newpw = $_REQUEST['newpw'];
modules/googleauth/generate.php  26) 
modules/googleauth/generate.php  27) if (! validate_password($username, $oldpw)) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

modules/webmailtotp/generate.php 28)     system_failure('Ihr bestehendes Mailbox-Passwort hat nicht gestimmt.');
Bernd Wurst Google-Auth-Token setzen un...

Bernd Wurst authored 11 years ago

modules/googleauth/generate.php  29) }
modules/googleauth/generate.php  30) 
modules/googleauth/generate.php  31) store_webmail_password($username, $oldpw, $newpw);
modules/googleauth/generate.php  32) $secret = generate_secret($username);
modules/googleauth/generate.php  33) 
Bernd Wurst Umbenennung Google-Auth nac...

Bernd Wurst authored 11 years ago

modules/webmailtotp/generate.php 34) $section='webmailtotp_overview';
modules/webmailtotp/generate.php 35) title("Zwei-Faktor-Anmeldung am Webmailer");
Bernd Wurst Google-Auth-Token setzen un...

Bernd Wurst authored 11 years ago

modules/googleauth/generate.php  36) 
Bernd Wurst Umbenennung Google-Auth nac...

Bernd Wurst authored 11 years ago

modules/webmailtotp/generate.php 37) output('<p>Bitte geben Sie den folgenden Initialisierungs-Code in Ihre TOTP-Software ein oder scannen Sie den QR-Code mit Ihrem Mobiltelefon.</p>');
Bernd Wurst Google-Auth-Token setzen un...

Bernd Wurst authored 11 years ago

modules/googleauth/generate.php  38) 
modules/googleauth/generate.php  39) $qrcode_image = generate_qrcode_image($secret);
modules/googleauth/generate.php  40) 
modules/googleauth/generate.php  41) output('<h4>Ihr Initialisierungs-Code</h4><p style="font-size: 120%;">'.$secret.'</p><p><img src="data:image/png;base64,'.base64_encode($qrcode_image).'" /></p>');
modules/googleauth/generate.php  42) 
Bernd Wurst Umbenennung Google-Auth nac...

Bernd Wurst authored 11 years ago

modules/webmailtotp/generate.php 43) output('<h3>Testen Sie es...</h3><p>Nachdem Sie den Startwert in Ihren TOTP-Generator eingegeben haben bzw. den QRCode eingescannt haben, erhalten Sie umgehend einen Zugangscode. Geben Sie diesen hier ein um die Funktion zu testen:</p>');
Bernd Wurst Google-Auth-Token setzen un...

Bernd Wurst authored 11 years ago

modules/googleauth/generate.php  44) 
Bernd Wurst Umstellung von filter_input...

Bernd Wurst authored 4 years ago

modules/webmailtotp/generate.php 45) $form = '<p>Ihr Webmail-Benutzername: <input type="text" name="username" value="'.filter_output_html($username).'" /></p>
Bernd Wurst Google-Auth-Token setzen un...

Bernd Wurst authored 11 years ago

modules/googleauth/generate.php  46) <p>Ihr neues Webmail-Passwort: <input type="password" name="webmailpass" /></p>
Bernd Wurst Umbenennung Google-Auth nac...

Bernd Wurst authored 11 years ago

modules/webmailtotp/generate.php 47) <p>Der aktuellste Einmal-Code: <input type="text" name="totp_code" /></p>
Bernd Wurst Google-Auth-Token setzen un...

Bernd Wurst authored 11 years ago

modules/googleauth/generate.php  48) <p><input type="submit" value="Prüfen!" /></p>';
modules/googleauth/generate.php  49) 
modules/googleauth/generate.php  50)