× 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
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
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.
Files on pastebin: login.php

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

Forum Jump:

Users browsing this thread: 1 Guest(s)