1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-20 02:03:49 +00:00

copy totp code on autofill

This commit is contained in:
Kyle Spearrin
2017-07-21 11:39:22 -04:00
parent 98e429505c
commit 1124c48c8d
10 changed files with 171 additions and 22 deletions

View File

@@ -1,4 +1,5 @@
using Bit.App.Models;
using System;
namespace Bit.iOS.Extension.Models
{
@@ -11,6 +12,7 @@ namespace Bit.iOS.Extension.Models
Username = login.Username?.Decrypt(login.OrganizationId);
Password = login.Password?.Decrypt(login.OrganizationId);
Uri = login.Uri?.Decrypt(login.OrganizationId);
Totp = new Lazy<string>(() => login.Totp?.Decrypt(login.OrganizationId));
}
public string Id { get; set; }
@@ -18,5 +20,6 @@ namespace Bit.iOS.Extension.Models
public string Username { get; set; }
public string Password { get; set; }
public string Uri { get; set; }
public Lazy<string> Totp { get; set; }
}
}