Skip to content

Commit

Permalink
Allow empty authtoken name #30792
Browse files Browse the repository at this point in the history
  • Loading branch information
IljaN committed Mar 16, 2018
1 parent 2c49c86 commit de01a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Authentication/Token/DefaultToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function setLastCheck($time) {
*/
public function setName($name) {
if (strlen($name) < 1) {
throw new \InvalidArgumentException();
$name = '(none)';
}
parent::setName($name);
}
Expand Down

0 comments on commit de01a36

Please sign in to comment.