Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit fdc1c34

Browse files
committed
Implement needsMultifactor delegate in StoredCredentialsAuthenticator
1 parent 51fa39d commit fdc1c34

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

WordPressAuthenticator/Unified Auth/StoredCredentialsAuthenticator.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,13 @@ extension StoredCredentialsAuthenticator: LoginFacadeDelegate {
155155
presentTwoFactorAuthenticationView()
156156
}
157157

158+
func needsMultifactorCode(forUserID userID: Int, andNonceInfo nonceInfo: SocialLogin2FANonceInfo) {
159+
loginFields?.nonceInfo = nonceInfo
160+
loginFields?.nonceUserID = userID
161+
162+
needsMultifactorCode()
163+
}
164+
158165
func finishedLogin(withAuthToken authToken: String, requiredMultifactorCode: Bool) {
159166
let wpcom = WordPressComCredentials(
160167
authToken: authToken,

0 commit comments

Comments
 (0)