I am using authlogic for my user login functionality in my Rails app. But authlogic allows space in password and my application doesn't require this. So how can I do it?
Thanks!
I am using authlogic for my user login functionality in my Rails app. But authlogic allows space in password and my application doesn't require this. So how can I do it?
Thanks!
You could use a regular expression to define your password rules.
validates_format_of :password, :with => /{regular expression here}/, :if => :require_password?, :message => "Must not contain any spaces!"