The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
handle existing join+login page
#7
What if I want to combine login.php with join.php?

I copied join.php logic to login.php and added _join.php view to the login.php. Next I changed $form_action ='join.php' to $form_action = 'login.php', so when I click register button I'm not sended away to join.php anymore.

Now here I'm stuck with some problems. If I now try to login OR register, I get Token doesn\'t match! message, after I click on login or register button.

I have tried to delete this line '<input type="hidden" value="<?=Token::generate();?>" name="csrf">' from login.php AND/OR from _join.php. I have tryed to rename tokens (from name="csrf" to name="csrf2") with no success. I have tried to comment out previous line of code and commented out the php logic that throws this error. But either way, the forms aren't working, or is only working one of them (either register or login).

@mudmin: can I somehow send you an PM?
  Reply


Messages In This Thread
handle existing join+login page - by yuma - 01-04-2017, 05:46 PM
handle existing join+login page - by mudmin - 01-04-2017, 05:55 PM
handle existing join+login page - by meetmec12 - 01-08-2017, 08:47 AM
handle existing join+login page - by mudmin - 01-08-2017, 04:33 PM
handle existing join+login page - by meetmec12 - 01-10-2017, 11:25 AM
handle existing join+login page - by mudmin - 01-11-2017, 12:32 AM
handle existing join+login page - by JUG - 03-13-2017, 10:14 AM
handle existing join+login page - by mudmin - 03-13-2017, 02:14 PM
handle existing join+login page - by JUG - 03-14-2017, 12:14 PM
handle existing join+login page - by mudmin - 03-14-2017, 02:25 PM
handle existing join+login page - by JUG - 04-19-2017, 09:06 AM
handle existing join+login page - by mudmin - 04-20-2017, 10:34 AM
handle existing join+login page - by JUG - 04-21-2017, 06:48 AM

Forum Jump:


Users browsing this thread: 4 Guest(s)