• Eric Chiang's avatar
    user: fix bug in ValidEmail helper · 137330b2
    Eric Chiang authored
    mail.ParseAddress will stop parsing a string once it finds a valid
    email address. This means you could give ValidUser an email
    address followed by junk and it would mark it valid.
    
    This commit fixes this behavior and adds some more test cases.
    
    Fixes #189
    137330b2
Name
Last commit
Last update
Documentation Loading commit data...
Godeps Loading commit data...
admin Loading commit data...
client Loading commit data...
cmd Loading commit data...
connector Loading commit data...
contrib Loading commit data...
db Loading commit data...
email Loading commit data...
examples Loading commit data...
functional Loading commit data...
integration Loading commit data...
pkg Loading commit data...
refresh Loading commit data...
repo Loading commit data...
schema Loading commit data...
server Loading commit data...
session Loading commit data...
static Loading commit data...
user Loading commit data...
.gitignore Loading commit data...
CONTRIBUTING.md Loading commit data...
DCO Loading commit data...
Dockerfile Loading commit data...
Dockerfile-builder Loading commit data...
LICENSE Loading commit data...
MAINTAINERS Loading commit data...
NOTICE Loading commit data...
README.md Loading commit data...
build Loading commit data...
build-docker-push Loading commit data...
build-units Loading commit data...
cover Loading commit data...
go-docker Loading commit data...
test Loading commit data...
test-functional Loading commit data...