fix(authn): fix the authentication instance cannot run after the update

This commit is contained in:
zhouzb 2021-10-19 09:05:54 +08:00
parent c73205a589
commit 31e2d9d2c0
1 changed files with 1 additions and 1 deletions

View File

@ -935,7 +935,7 @@ switch_version(State = #{version := ?VER_1}) ->
switch_version(State = #{version := ?VER_2}) ->
State#{version := ?VER_1};
switch_version(State) ->
State#{version => ?VER_1}.
State#{version => ?VER_2}.
authn_type(#{mechanism := Mechanism, backend := Backend}) ->
{Mechanism, Backend};