Jump to:

23545 Posts in 19310 Topics by 2888 members

General Questions

SilverStripe Forums » General Questions » Custom error message for ConfirmedPasswordField

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: 311 Views
  • Optic Blaze
    Community Member
    162 Posts

    Custom error message for ConfirmedPasswordField Link to this post

    Hi there,

    I am using ConfirmedPasswordField to make sure that users enter their passwords correctly. If have also implemented

    Aram Balakjian's tutorial on how to add extra validation to the field ( http://www.ssbits.com/snippets/2010/using-a-password-validator/ )

    The problem that i get now is that when the user types in a password that is too short, he gets the following error (see atached as well) instead of a jquery/javascript error or even a nice .ss template page that explains what is going on:

    "[User Error] Uncaught ValidationException: Validation error writing a Member object: Password is too short, it must be 7 or more characters long.; You need to increase the strength of your passwords by adding some of the following characters: uppercase, digits, punctuation. Object not written."

    How can i get the system to display a more user friendly error


    Attached Files
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.