IEEE.org     |     IEEE Xplore Digital Library     |     IEEE Standards     |     IEEE Spectrum     |     More Sites

Verified Commit a4e64732 authored by Emi Simpson's avatar Emi Simpson
Browse files

Return login URL in direct_auth get_login_url

parent a49816d2
......@@ -13,7 +13,7 @@ from typing import Optional, Tuple, Union, cast
from argon2 import PasswordHasher
from pymysql.cursors import Cursor
from mystic.auth import AuthModule, update_user
from flask import session, request
from flask import session, request, url_for
from flask.app import Flask
from random import randint
......@@ -202,7 +202,7 @@ class DirectAuth(AuthModule):
def get_login_url(self) -> str:
#return self.service_provider.get_login_url()
return ""
return url_for('direct_login.login')
def check_user(self, c: Cursor) -> Optional[User]:
if 'id' in session:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment