Jump to content

Error with front end log in


kyle
 Share

Recommended Posts

I am getting and error with a front end login.  It is only happening for one specific user, and I can't figure out what's going on.  I turned on debug in the config and will attach the screen shot that he sent me.  If you would prefer for me to type it out, please let me know and I will.  The error seems to be the result of a selector, and it may be from my code; however, my template files aren't listed anywhere in the error stack.  The screen shots are from when he tried to login on his phone, but he has tried on his computer and gets the error using IE and chrome.  His username is set up has first-lastname.

Link to comment
Share on other sites

First of all, in my opinion you're giving a bit too much information about your live site here - domain and username, plus no proper sanitation apparently. Luckily the error is before actual login call and no password can be seen ;).

So, as the error message says, your selector value wasn't properly escaped. Looks like you're running a find() with only the raw username given somewhere ("First Lastname" in this case, without the quotation marks). This could be something else, but do remember that all user input should be sanitized before using it in your code. At least run the input through $sanitizer->selectorValue() or do some more specific kind of sanitation depending on the situation. If all the usernames are formed like "first-lastname" then do check that's what you've got in before using the value and handle the error properly.

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...