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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

customizing log in form


Go to End


4 Posts   1753 Views

Avatar
AkiRoss

Community Member, 6 Posts

1 November 2012 at 8:07pm

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

Community Member, 6 Posts

1 November 2012 at 11:16pm

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

Forum Moderator, 5523 Posts

2 November 2012 at 11:29am

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

Community Member, 6 Posts

2 November 2012 at 5:54pm

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. (: