diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-09-09 18:42:28 -0400 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-09-09 18:42:28 -0400 |
commit | 7a9e709bd25407c1915e97e37bbf424ad5dc3ef5 (patch) | |
tree | 5b1de241f963d88a6e5415e302c18f292ffab30a /model | |
parent | e6d4661aba8c25901329bd3fcff8e01ddc6ae600 (diff) | |
download | chat-7a9e709bd25407c1915e97e37bbf424ad5dc3ef5.tar.gz chat-7a9e709bd25407c1915e97e37bbf424ad5dc3ef5.tar.bz2 chat-7a9e709bd25407c1915e97e37bbf424ad5dc3ef5.zip |
Removed pointless attempt to verify a new user's username
Diffstat (limited to 'model')
-rw-r--r-- | model/user.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/model/user.go b/model/user.go index 9f90b8204..05fc96953 100644 --- a/model/user.go +++ b/model/user.go @@ -335,11 +335,6 @@ func ComparePassword(hash string, password string) bool { return err == nil } -func IsUsernameValid(username string) bool { - - return true -} - var validUsernameChars = regexp.MustCompile(`^[a-z0-9\.\-_]+$`) var restrictedUsernames = []string{ |