Merge pull request #5950 from tigercl/fix/authn-version
fix(authn): fix the authentication instance cannot run after the update
This commit is contained in:
commit
bd53c488d1
|
@ -935,7 +935,7 @@ switch_version(State = #{version := ?VER_1}) ->
|
||||||
switch_version(State = #{version := ?VER_2}) ->
|
switch_version(State = #{version := ?VER_2}) ->
|
||||||
State#{version := ?VER_1};
|
State#{version := ?VER_1};
|
||||||
switch_version(State) ->
|
switch_version(State) ->
|
||||||
State#{version => ?VER_1}.
|
State#{version => ?VER_2}.
|
||||||
|
|
||||||
authn_type(#{mechanism := Mechanism, backend := Backend}) ->
|
authn_type(#{mechanism := Mechanism, backend := Backend}) ->
|
||||||
{Mechanism, Backend};
|
{Mechanism, Backend};
|
||||||
|
|
Loading…
Reference in New Issue