Jump to:

22977 Posts in 11742 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » customizing log in form

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

Page: 1
Go to End
Author Topic: 422 Views
  • AkiRoss
    Avatar
    Community Member
    6 Posts

    customizing log in form Link to this post

    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!!

  • AkiRoss
    Avatar
    Community Member
    6 Posts

    Re: customizing log in form Link to this post

    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
  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: customizing log in form Link to this post

    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.

  • AkiRoss
    Avatar
    Community Member
    6 Posts

    Re: customizing log in form Link to this post

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

    422 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.