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:
tigercl 2021-10-19 09:58:09 +08:00 committed by GitHub
commit bd53c488d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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};