Fix SCRAM to support attributes which value has only one character
This commit is contained in:
parent
8bcde56409
commit
d6d58d13f7
|
@ -138,7 +138,7 @@ mech_step(#state{step = 4} = State, ClientIn) ->
|
||||||
parse_attribute(Attribute) ->
|
parse_attribute(Attribute) ->
|
||||||
AttributeLen = string:len(Attribute),
|
AttributeLen = string:len(Attribute),
|
||||||
if
|
if
|
||||||
AttributeLen > 3 ->
|
AttributeLen >= 3 ->
|
||||||
SecondChar = lists:nth(2, Attribute),
|
SecondChar = lists:nth(2, Attribute),
|
||||||
case is_alpha(lists:nth(1, Attribute)) of
|
case is_alpha(lists:nth(1, Attribute)) of
|
||||||
true ->
|
true ->
|
||||||
|
|
Loading…
Reference in New Issue