Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

customizing log in form


Reply

4 Posts   531 Views

Avatar
AkiRoss

1 November 2012 at 8:07pm Community Member, 6 Posts

How can I customize log in form in following:

- labels (E.g "Email", "Password"),
- Info messages (E.g "Please choose an authentication method and enter your credentials to access the CMS.")
- Error messages (E.g "That doesn't seem to be the right e-mail address or password. Please try again.")

And also is it possible to log in using"UserName" instead of "Email"? Can someone let me know any related article about that?

Thanks!!

Avatar
AkiRoss

1 November 2012 at 11:16pm Community Member, 6 Posts

No Luck yet.. still haven't found where to change.
If anyone could help, please let me know I would greatly appreciate it. I've changed every occurrence of message "That doesn't seem to be the right e-mail address or password. Please try again." but still seeing it. I've attached screen shot of my login page also..

Attached Files
Avatar
Willr

2 November 2012 at 11:29am Forum Moderator, 5511 Posts

And also is it possible to log in using"UserName" instead of "Email"?

Yes, you can use Member::set_unique_identifier_field('Username') to define the unique login field. Not sure about the error message, you could perhaps create your own 'language' for the site and override the language files for the Member.ERRORWRONGCRED string.

Avatar
AkiRoss

2 November 2012 at 5:54pm Community Member, 6 Posts

Thank you Willr!! :)
I've changed to "UserName" to login and it's working now !! I am quite new to SS and also to PHP. (: