c7588fe5fc5898bab0e0406309544294c09fae63
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) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 1 year ago

modules/webmailtotp/generate.php  5) Written 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) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 1 year ago

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

Bernd Wurst authored 11 years ago

modules/googleauth/generate.php  10) 
modules/googleauth/generate.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/generate.php  12) */
modules/googleauth/generate.php  13) 
modules/googleauth/generate.php  14) require_once('inc/base.php');
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 2 years ago

modules/webmailtotp/generate.php 15) 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  16) 
Bernd Wurst Umbenennung Google-Auth nac...

Bernd Wurst authored 11 years ago

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

Bernd Wurst authored 11 years ago

modules/googleauth/generate.php  18) 
modules/googleauth/generate.php  19) $username = urldecode($_REQUEST['username']);
modules/googleauth/generate.php  20) 
modules/googleauth/generate.php  21) $oldpw = $_REQUEST['oldpw'];
modules/googleauth/generate.php  22) $newpw = $_REQUEST['newpw'];
modules/googleauth/generate.php  23) 
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 6 months ago

modules/webmailtotp/generate.php 24) if (!validate_password($username, $oldpw)) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

modules/webmailtotp/generate.php 25)     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  26) }
modules/googleauth/generate.php  27) 
modules/googleauth/generate.php  28) store_webmail_password($username, $oldpw, $newpw);
modules/googleauth/generate.php  29) $secret = generate_secret($username);
modules/googleauth/generate.php  30) 
Hanno Böck codingstyle, spaces between...

Hanno Böck authored 8 months ago

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

Bernd Wurst authored 11 years ago

modules/webmailtotp/generate.php 32) title("Zwei-Faktor-Anmeldung am Webmailer");
Bernd Wurst Google-Auth-Token setzen un...

Bernd Wurst authored 11 years ago

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

Bernd Wurst authored 11 years ago

modules/webmailtotp/generate.php 34) 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  35) 
modules/googleauth/generate.php  36) $qrcode_image = generate_qrcode_image($secret);
modules/googleauth/generate.php  37) 
Hanno Böck HTML fixes and autocomplete...

Hanno Böck authored 3 months ago

modules/webmailtotp/generate.php 38) output('<h4>Ihr Initialisierungs-Code</h4><p style="font-size: 120%;">' . $secret . '</p><p><img src="data:image/png;base64,' . base64_encode($qrcode_image) . '" alt="QR-Code"></p>');
Bernd Wurst Google-Auth-Token setzen un...

Bernd Wurst authored 11 years ago

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

Bernd Wurst authored 11 years ago

modules/webmailtotp/generate.php 40) 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  41) 
Hanno Böck HTML fixes and autocomplete...

Hanno Böck authored 3 months ago

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

Bernd Wurst authored 11 years ago

modules/googleauth/generate.php  46) 
modules/googleauth/generate.php  47)