I have installed merchello 2.5 + fasttrack 2.5 & out of the box I'm having issues with data validation on the login / register forms.
Basically the issue is whenever you submit the login form, it does not provide any form feedback (like username does not exist, password is incorrect). The same goes for register form (no 'this username is already' taken).
However looking at the source code it looks like this work has been done, but it's just not showing up on the front-end. I've installed merchello + fasttrack out of the box and I'm having the issue still so I'm 99% sure it's not something on my end.
Issue with form feedback for register / login forms
Hi All,
I have installed merchello 2.5 + fasttrack 2.5 & out of the box I'm having issues with data validation on the login / register forms.
Basically the issue is whenever you submit the login form, it does not provide any form feedback (like username does not exist, password is incorrect). The same goes for register form (no 'this username is already' taken).
However looking at the source code it looks like this work has been done, but it's just not showing up on the front-end. I've installed merchello + fasttrack out of the box and I'm having the issue still so I'm 99% sure it's not something on my end.
https://github.com/Merchello/Merchello/blob/merchello-dev/src/Merchello.FastTrack/Controllers/Membership/CustomerMembershipController.cs (Line 96 for login - 142 for register).
Has anybody found a fix for this, or is there a way to access ViewData["MerchelloViewData"] on my end so I can display the error messages :).
Cheers, Hayden
I just found out, that by default Fasttrack does not pick up the messages on the front-end. So you need to add it yourself.
Here is my ftForgotPassword.cshtml for example:
I am currently working on this page, but i thought it might help you out to get started.
Puck
Legend thank you!
That's perfect, I've updated your code to include the success message as well (and uses default bootstrap alert boxes).
For your login page you do exactly the same method -> all credit to @puck above.
Thanks for the feedback!
Glad you found my sample code useful! I will use your changes to display the data ;)
Puck
is working on a reply...