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
#11
Ok. Looks like I figured it out. login.php and join.php created token when I combined join+login page. I just removed one token and everithing works fine now. It would be great if you could include login+join page in future release, so others can use that option too. I think it makes sense.

Regards, Jakob
  Reply
#12
I've spent a good bit of time trying to get those forms to play nicely together and I just can't get it to work. I'm open to any user submitted ideas. The OAUTH logins already work that way. They don't care whether you have an account already or not as far as the front end user sees.
  Reply
#13
Files on pastebin: login.php
_join.php

It is not thoroughly tested, but it works.
  Reply
#14
Thx JUG for your code, here is an ideeaSmile
I use switch to handle form action like this:
- in register form
Code:
<input type="hidden" name="action" value="register" />
- in login form
Code:
<input type="hdden" name="action" value="login" />
and then in php code
<pre>
Code:
$action = $_POST['action'];
    switch ($action) {
       case 'login' :
// Login code
break;
case 'register' :
// Register code
break;
}
</pre>
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)