Monday, May 21st

Last update05:36:30 AM GMT

Font Size

Screen

Profile

Layout

Menu Style

Cpanel
Welcome, Guest
Username Password: Remember me

Com_user validation
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Com_user validation

Com_user validation 3 years, 6 months ago #786

  • jsoares
  • OFFLINE
  • Senior Boarder
  • Posts: 41
  • Karma: 1
Hi Guys, hope you're well.

I am having to implement the com_user component trough some clients web sites and is kind of disappointing.

When adding the com_user login as a module it doesn't validate the email and password fields. The same happens for registration as well as reset and renew password.

The user feels a bit lost when for example inserting a not valid email address and nothing happens. Also when successfully registering there is no message making the user know that everything went well.

Looking at the core files seems like the setRedirect method doesn't return the $msg to the redirect page. I actually just see that working on components on the backend not in the front end.

this->setRedirect( $_SERVER['HTTP_REFERER'], $msg );

I tried to avoid that but in this case I had to slightly change the core files and post the $msg parameter back as part of the string. Also a JS helped me to validate incorrect inputs on the forms.

Have you guys ever faced that?

Jose Soares
www.linkedin.com/in/joseotaviosoares
  • Page:
  • 1
Time to create page: 0.30 seconds
You are here: Forum