diff --git a/lib/NGCP/Panel/Controller/Root.pm b/lib/NGCP/Panel/Controller/Root.pm index 758e6893f7..d9ebb916eb 100644 --- a/lib/NGCP/Panel/Controller/Root.pm +++ b/lib/NGCP/Panel/Controller/Root.pm @@ -745,7 +745,7 @@ sub login_jwt :Chained('/') :PathPart('login_jwt') :Args(0) :Method('POST') { return; } if ($auth_user->enable_2fa - and not verify_otp($c,$auth_user->otp_secret,$otp,time())) { + and not NGCP::Panel::Utils::Auth::verify_otp($c,$auth_user->otp_secret,$otp,time())) { $c->response->status(HTTP_FORBIDDEN); $c->response->body(encode_json({ code => HTTP_FORBIDDEN, diff --git a/share/templates/login/otp_registration_info.tt b/share/templates/login/otp_registration_info.tt index 8317d9c1cc..78a4f90f9f 100644 --- a/share/templates/login/otp_registration_info.tt +++ b/share/templates/login/otp_registration_info.tt @@ -1,9 +1,9 @@