Fallback to unkown useragent and don't stash such login attempts

This commit is contained in:
Johannes Zellner
2021-05-04 20:02:53 +02:00
parent bec42c69c8
commit fed8ba95f0
2 changed files with 5 additions and 3 deletions

View File

@@ -164,7 +164,7 @@ function sendNewLoginLocation(user, loginLocation) {
const templateData = {
user: user.displayName || user.username || user.email,
ip,
userAgent,
userAgent: userAgent || 'unknown',
country,
city,
cloudronName: mailConfig.cloudronName,