allow empty names

pull/1/head
ansuz 2016-09-23 16:06:46 +02:00
parent eac0cdd6dd
commit a82b7aaf8b
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ define([
};
var setName = module.setName = function (newName) {
if (!(typeof(newName) === 'string' && newName.trim())) { return; }
if (!(typeof(newName) === 'string')) { return; }
var myUserNameTemp = Cryptpad.fixHTML(newName.trim());
if(myUserNameTemp.length > 32) {
myUserNameTemp = myUserNameTemp.substr(0, 32);