Move username and email lowercasing to where it belongs

Fixes #592
This commit is contained in:
Johannes Zellner
2016-04-14 16:25:46 +02:00
parent 9f443e2d07
commit 101ce62ef3
4 changed files with 19 additions and 31 deletions

View File

@@ -122,8 +122,8 @@ describe('User', function () {
user.createOwner(USERNAME, PASSWORD, EMAIL, DISPLAY_NAME, function (error, result) {
expect(error).not.to.be.ok();
expect(result).to.be.ok();
expect(result.username).to.equal(USERNAME);
expect(result.email).to.equal(EMAIL);
expect(result.username).to.equal(USERNAME.toLowerCase());
expect(result.email).to.equal(EMAIL.toLowerCase());
// first user is owner, do not send mail to admins
checkMails(0, done);