Skip to content

Commit

Permalink
#1374 Use default user domain to complete logins
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Jul 21, 2020
1 parent 72b9ca4 commit e845a0b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ trait Conversion {
if (start == len) "empty.name" else value.substring(start, len)
}
(login.replaceAll("[^\\w@-]+", ".").replaceFirst("\\W*$", "").split('@') match {
case Array(l) => validSegment(l) + '@' + mainOrganisation
case Array(l) => validSegment(l)
case Array(l, d @ _*) => validSegment(l) + '@' + validSegment(d.mkString("."))
}).toLowerCase
}
Expand Down

0 comments on commit e845a0b

Please sign in to comment.