1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-07 11:03:54 +00:00

add steam support for otp generation

This commit is contained in:
Kyle Spearrin
2018-11-29 17:10:51 -05:00
parent 7ff628ea51
commit 8175af4e84
2 changed files with 25 additions and 2 deletions

View File

@@ -44,6 +44,12 @@ namespace Bit.App.Models
}
}
}
else if (key?.ToLowerInvariant().StartsWith("steam://") ?? false)
{
Steam = true;
Digits = 5;
Secret = key.Substring(8);
}
else
{
Secret = key;
@@ -54,5 +60,6 @@ namespace Bit.App.Models
public int Digits { get; set; } = 6;
public MacAlgorithm Algorithm { get; set; } = MacAlgorithm.HmacSha1;
public string Secret { get; set; }
public bool Steam { get; set; }
}
}