[SUCS Devel] [Git][sucssite/sucs-site][master] 2 commits: Revert "Fix old members returning with the same student id while still being a student."

Imran Hussain imranh at sucs.org
Thu Oct 13 10:45:51 BST 2016


Imran Hussain pushed to branch master at sucssite / sucs-site


Commits:
592f6ce0 by Imran Hussain at 2016-10-13T10:36:28+01:00
Revert "Fix old members returning with the same student id while still being a student."

This reverts commit f772dc7a1da618a609b3312ce390e7cf11abde8c.

Better fix incoming

- - - - -
766f09dd by Imran Hussain at 2016-10-13T10:47:11+01:00
Fix old student members coming back with the same student id after thier account has been deleted and they paid via the su

- - - - -


1 changed file:

- components/susignup.php


Changes:

=====================================
components/susignup.php
=====================================
--- a/components/susignup.php
+++ b/components/susignup.php
@@ -46,6 +46,11 @@ if (!empty($_REQUEST['sid']) && !empty($_REQUEST['transactionID'])) {
             renew_membership($tmpresult->fields["username"]);
             // let them know that their account has been renewed
             message_flash("Your SUCS account has been renewed.");
+        // else if they aren't in the SUCS DB but have a signup slip, take them back to that part of signup
+        } else if ($tmpresult->fields == false && $signuptmpresult->fields["sid"] == $sid && $signuptmpresult->fields["activated"] != NULL) {
+            $mode = "form";
+            $smarty->assign("id", $signuptmpresult->fields["id"]);
+            $smarty->assign("pass", $signuptmpresult->fields["password"]);
         // else if they aren't in the SUCS DB, then bootstrap signup process
         } else if ($tmpresult->fields == false && $signuptmpresult->fields == false) {
             $mode = "form";



View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/compare/f772dc7a1da618a609b3312ce390e7cf11abde8c...766f09dd13cd0a36481a80b4fc4699ca333f1b03
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20161013/42cc19d3/attachment.html>


More information about the Devel mailing list