X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fregisteruser.php;h=97caf645cd6eb812904d9c68da110e958e30ca49;hb=c285f80b1830cffd20a28c693d74c59f8c3c39f6;hp=9857f5aeeae462dab3e59cf5cc738935c010496c;hpb=97b4576c115b86612a2ded6fbd800b6b5350d7a4;p=quix0rs-gnu-social.git diff --git a/scripts/registeruser.php b/scripts/registeruser.php old mode 100644 new mode 100755 index 9857f5aeea..97caf645cd --- a/scripts/registeruser.php +++ b/scripts/registeruser.php @@ -24,8 +24,8 @@ $shortoptions = 'n:w:f:e:'; $longoptions = array('nickname=', 'password=', 'fullname=', 'email='); $helptext = <<email = $email; - if (!$user->updateKeys($orig)) { - print "Failed!\n"; - throw new Exception("Can't update email address."); - } + // Throws exception on failure. + $user->updateWithKeys($orig); } } catch (Exception $e) {