Browse Source

php - disallow hotmail due to service failure problems

master
kanoi 9 years ago
parent
commit
871587bd92
  1. 6
      pool/page_reg.php
  2. 7
      pool/page_settings.php

6
pool/page_reg.php

@ -125,6 +125,12 @@ function try_reg($info, $page, $menu, $name, $u)
$ok = false; $ok = false;
else else
{ {
if (stripos($mail, 'hotmail') !== false)
{
$ok = false;
$data['error'] = "hotmail not allowed";
}
if (safepass($pass) !== true) if (safepass($pass) !== true)
{ {
$ok = false; $ok = false;

7
pool/page_settings.php

@ -127,11 +127,16 @@ function dosettings($data, $user)
{ {
case 'EMail': case 'EMail':
$email = getparam('email', false); $email = getparam('email', false);
if (stripos($email, 'hotmail') !== false)
$err = 'hotmail not allowed';
else
{
$pass = getparam('pass', false); $pass = getparam('pass', false);
$twofa = getparam('2fa', false); $twofa = getparam('2fa', false);
$ans = userSettings($user, $email, null, $pass, $twofa); $ans = userSettings($user, $email, null, $pass, $twofa);
$err = 'EMail changed'; $err = 'EMail changed';
$check = true; $check = true;
}
break; break;
case 'Address': case 'Address':
if (!isset($data['info']['u_multiaddr'])) if (!isset($data['info']['u_multiaddr']))
@ -213,7 +218,7 @@ function dosettings($data, $user)
$old = $_SESSION['old_set_email']; $old = $_SESSION['old_set_email'];
else else
$old = null; $old = null;
emailAddressChanged($email, zeip(), $emailinfo, $old); # emailAddressChanged($email, zeip(), $emailinfo, $old);
break; break;
case 'Address': case 'Address':
payoutAddressChanged($email, zeip(), $emailinfo); payoutAddressChanged($email, zeip(), $emailinfo);

Loading…
Cancel
Save