Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions OTOP/Data/Models/Account.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class Account : INotifyPropertyChanged
private Algorithm _hmacAlgorithm;
private int _id;
private string _issuer;
private string _icon;
private string _originalUri;
private int _period;
private string _sharedSecret;
Expand Down Expand Up @@ -62,6 +63,17 @@ public string Issuer
}
}

public string Icon
{
get { return _icon; }
set
{
if (value == _icon) return;
_icon = value;
OnPropertyChanged(nameof(Icon));
}
}

public string OriginalUri
{
get { return _originalUri; }
Expand Down
1 change: 1 addition & 0 deletions OTOP/Utils/TOTP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public static Account ParseUrl(string url)
SharedSecret = parameters.AllKeys.Contains("secret") ? parameters["secret"] : string.Empty,
Issuer = parameters.AllKeys.Contains("issuer") ? parameters["issuer"] : string.Empty,
Email = keyUri.AbsolutePath.Substring(1, keyUri.AbsolutePath.Length - 1),
Icon = string.Empty,
OriginalUri = url,
Digits = digits,
Period = period
Expand Down