Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
user: be more explicit on the allowed name format
Browse files Browse the repository at this point in the history
bsc#978658

Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
  • Loading branch information
mssola committed May 6, 2016
1 parent d869e2b commit 5e1f164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class User < ActiveRecord::Base
validates :username, presence: true, uniqueness: true,
format: {
with: USERNAME_FORMAT,
message: "Only alphanumeric characters are allowed. Minimum 4 characters, maximum 30."
message: "only lower case alphanumeric characters are allowed. Minimum 4 characters, maximum 30."
}

# Actions performed before/after create.
Expand Down

0 comments on commit 5e1f164

Please sign in to comment.