This repository was archived by the owner on Jun 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 726
Add generic passwork checker before sending transaction #867
Open
ghost
wants to merge
19
commits into
master
Choose a base branch
from
feature/830-require-password-on-sending-transactions
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 13 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
55c1d9e
Add generic passwork checker before sending transaction
taraspasichnyk 644a594
Use AuthenticateUserCoordinator
taraspasichnyk a323fef
Add properly in user defaults. Implemented functionality of checking …
taraspasichnyk 863d444
Add protocol for view model in LockEnterPasscodeViewController
taraspasichnyk 3f990bc
Add new files in folder hierarchy
taraspasichnyk ea7bf52
Add localized string for lock.authenticate.enter.passcode.view.model.…
taraspasichnyk 947a158
Add localized strings for settings.lockTransactions.label.title
taraspasichnyk 4263885
Merge branch 'master' into feature/830-require-password-on-sending-tr…
taraspasichnyk 86c17c3
Check if user needs to confirm with a password on Coordinator level
taraspasichnyk 15f678b
Use R.string.localizable. Fix issue with Localizable files
taraspasichnyk ef83945
Change LockCreatePasscodeViewModel to use R.string.localizable
taraspasichnyk f1d62af
Remove duplication
taraspasichnyk bef4c80
Passcode protect transaction option only visible if passcode lock is set
taraspasichnyk 9faf26b
Fix localizable string. Remove 'self'. Add general reference to passc…
taraspasichnyk 18dbc31
Merge branch 'master' into feature/830-require-password-on-sending-tr…
taraspasichnyk d453f52
Change user defaults to keychain
taraspasichnyk 14121c6
Removed localized strings
taraspasichnyk ee2dc8a
Updated fake lock protocol
taraspasichnyk b5c6cde
Merge branch 'master' into feature/830-require-password-on-sending-tr…
taraspasichnyk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
Trust/Lock/ViewModels/AuthenticateEnterPasscodeViewModel.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| // Copyright DApps Platform Inc. All rights reserved. | ||
|
|
||
| import Foundation | ||
|
|
||
| final class AuthenticateEnterPasscodeViewModel: LockViewModel, EnterPasscodeViewModelInterface { | ||
| var loginReason: String { | ||
| return R.string.localizable.lockAuthenticateEnterPasscodeViewModelTouchId() | ||
| } | ||
| } |
16 changes: 16 additions & 0 deletions
16
Trust/Lock/ViewModels/EnterPasscodeViewModelInterface.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| // Copyright DApps Platform Inc. All rights reserved. | ||
|
|
||
| import Foundation | ||
|
|
||
| protocol EnterPasscodeViewModelInterface: class { | ||
| var loginReason: String { get } | ||
| } | ||
|
|
||
| extension EnterPasscodeViewModelInterface { | ||
| var initialLabelText: String { | ||
| return R.string.localizable.lockEnterPasscodeViewModelInitial() | ||
| } | ||
| var tryAfterOneMinute: String { | ||
| return R.string.localizable.lockEnterPasscodeViewModelTryAfterOneMinute() | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.