]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/password.php
CSRF protection for subscription/unsubscription
[quix0rs-gnu-social.git] / actions / password.php
index 90e7db2664c631677812485d15a019db133c1376..23b95f7b68f4be6c4e600787e6a2ea53f9f6be38 100644 (file)
@@ -62,6 +62,7 @@ class PasswordAction extends SettingsAction {
                
                if (!$token || $token != common_session_token()) {
                        $this->show_form(_('There was a problem with your session token. Try again, please.'));
+                       return;
                } else if (0 != strcmp($newpassword, $confirm)) {
                        $this->show_form(_('Passwords don\'t match.'));
                        return;