Skip to content

Commit

Permalink
Removed header for username/password view
Browse files Browse the repository at this point in the history
  • Loading branch information
charliescheer committed Sep 12, 2024
1 parent 47ed1a8 commit 2ffb35e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Simplenote/AuthenticationMode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ extension AuthenticationMode {
}

static var loginWithUsernameAndPassword: AuthenticationMode {
buildLoginWithPasswordMode(header: LoginStrings.loginWithEmailEmailHeader, includeUsername: true)
buildLoginWithPasswordMode(header: nil, includeUsername: true)
}

/// Auth Mode: Login with Username + Password + Rate Limiting Header
Expand All @@ -138,7 +138,7 @@ extension AuthenticationMode {

/// Builds the loginWithPassword Mode with the specified Header
///
private static func buildLoginWithPasswordMode(header: String, includeUsername: Bool = false) -> AuthenticationMode {
private static func buildLoginWithPasswordMode(header: String?, includeUsername: Bool = false) -> AuthenticationMode {
let inputElements: AuthenticationInputElements = includeUsername ? [.username, .password] : [.password]
return AuthenticationMode(title: NSLocalizedString("Log In with Password", comment: "LogIn Interface Title"),
header: header,
Expand Down

0 comments on commit 2ffb35e

Please sign in to comment.