The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (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
custom login page
#7
Yes. That works. The thing you risk is that someone could change it. If it were me, I would try 2 more things.

I would add the word readonly to the end of the input

Code:
<input type="text" name="user" value="<?=$user->data()->id?>" readonly>

but then, to be honest, if on form submission I would not even look at what's inputted on the form input. I would just do

Code:
$username = $user->data()->username;

Unless you really want them to be able to put something other than their username in there, because even with readonly, they could post a different username (like admin).
  Reply


Messages In This Thread
custom login page - by roger - 06-21-2018, 12:39 PM
custom login page - by mudmin - 06-21-2018, 02:33 PM
custom login page - by roger - 06-21-2018, 04:06 PM
custom login page - by mudmin - 06-21-2018, 05:25 PM
custom login page - by roger - 06-22-2018, 09:06 AM
custom login page - by roger - 06-22-2018, 09:23 AM
custom login page - by mudmin - 06-22-2018, 11:23 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)