Check username on signup
This commit is contained in:
parent
d6c76ceff7
commit
a1d8acbb48
2 changed files with 14 additions and 1 deletions
|
|
@ -97,7 +97,8 @@ class User < ApplicationRecord
|
|||
|
||||
validates :username,
|
||||
uniqueness: {
|
||||
case_sensitive: false
|
||||
case_sensitive: false,
|
||||
message: 'is already taken'
|
||||
},
|
||||
presence: true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue