Skip to content

Commit 2a2434e

Browse files
author
Jon Hjelle
committed
Fix mismatched parameter names
1 parent 6ff2f9c commit 2a2434e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Authentication/SCRAM-SHA-1/XMPPSCRAMSHA1Authentication.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,20 @@ + (NSString *)mechanismName
6565

6666
- (id)initWithStream:(XMPPStream *)stream password:(NSString *)password
6767
{
68-
return [self initWithStream:stream username:nil password:inPassword];
68+
return [self initWithStream:stream username:nil password:password];
6969
}
7070

71-
- (id)initWithStream:(XMPPStream *)stream username:(NSString *)inUsername password:(NSString *)inPassword
71+
- (id)initWithStream:(XMPPStream *)stream username:(NSString *)username password:(NSString *)password
7272
{
7373
if ((self = [super init])) {
7474
xmppStream = stream;
75-
if (inUsername)
75+
if (username)
7676
{
77-
_username = inUsername;
77+
_username = username;
7878
}
7979
else
8080
{
81-
_username = [XMPPStringPrep prepNode:[xmppStream.myJID user]];
81+
_username = [XMPPStringPrep prepNode:[xmppStream.myJID user]];
8282
}
8383
_password = [XMPPStringPrep prepPassword:password];
8484
_hashAlgorithm = kCCHmacAlgSHA1;

0 commit comments

Comments
 (0)