Skip to content

Commit

Permalink
Merge pull request #4 from pisciaj/master
Browse files Browse the repository at this point in the history
Added .lowercased() to forPolicy in getUserByPolicy method
  • Loading branch information
parakhj committed Aug 31, 2017
2 parents 5f81f89 + d7668e9 commit 5cd5fc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cartfile.resolved
@@ -1 +1 @@
github "AzureAD/microsoft-authentication-library-for-objc" "8e87860b09148198b756c821909b0fe5fe2c1da6"
github "AzureAD/microsoft-authentication-library-for-objc" "32582453d17e156882b8ad5d8d50d319b14513c3"
2 changes: 1 addition & 1 deletion MSALiOSB2C/ViewController.swift
Expand Up @@ -366,7 +366,7 @@ class ViewController: UIViewController, UITextFieldDelegate, URLSessionDelegate
func getUserByPolicy (withUsers: [MSALUser], forPolicy: String) throws -> MSALUser? {

for user in withUsers {
if (user.userIdentifier().components(separatedBy: ".")[0].hasSuffix(forPolicy)) {
if (user.userIdentifier().components(separatedBy: ".")[0].hasSuffix(forPolicy.lowercased())) {
return user
}
}
Expand Down

0 comments on commit 5cd5fc9

Please sign in to comment.