Jump to content

Search the Community

Showing results for tags 'login challenge'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. Hello, im having a strange behavior at a frontend login, yesterday it was working perfectly, this morning it stopped working without me changing a line of code, so here is the problem, maybe somebody here has seen this before: this is my login code, it checks the inputs via ajax and returns either "logueado" or "falla_login" $username = slugify($datos['login_username']); $username = $sanitizer->username($username); $pass = $datos['login_password']; if(isset($username) && isset($pass)) { $u = $session->login($username, $pass); if($u) { $respuesta->status = "logueado"; } else { $respuesta->status = "falla_login"; } }; Now this part of the code appears to be working fine, its returning "logueado" when I input the right credentials and "falla_login" when im not. So, after this the answer is evaluated by ajax and if the login was successful("logueado") it reloads the page, This is is the code for the page, its suposed to show you a diferent page depending on your role and the login page if you are not logged in: require("./include/head.php"); if (($user->isLoggedin())) { //si el usuario inició sesión require("./include/header.php"); if ($role=="administrador"||$role=="ceo"||$role=="superuser") { //si es administrador o superuser require("./administracion/administracion-index.php"); //llamar página de administrador } if ($role=="instructor") { //si es instructor require("./instructor/instructor-index.php"); //llamar página de instructor } if ($role=="alumno") { //si es alumno require("./alumno/alumno-index.php"); //llamar página de alumno } } else { $role = "unLogged"; //si el usuario no esta logueado require("./login.php"); // mostrar pantalla de login }; The problem is that when I login with the right credentials the page is reloaded and its suposed to check for my role (the code for setting the $role variable is inside the functions.php file) and then show me the right page, but its returning me to the login page, the weirdest thing is when i check the sessions log i find this: log1: Successful login for 'elbedroom' log2: User 'elbedroom' - Error: Invalid challenge value (IP: 0.0.0.0) So apparently there is somethingchecking for an ip or something and its unlogging me right after logging in, i havent found anyhting on the forums about this "Invalid challenge value" so i hope somebody can help, right now i can only login if i go the the backend, login and return to the front end, this way everything works fine, but from the frontend login nothing is working
×
×
  • Create New...