From ba4cabcfc650b8f3c6f530f0f4f3f32d68a7d9a0 Mon Sep 17 00:00:00 2001 From: Jason Robbins Date: Fri, 18 Jun 2021 08:43:12 -0700 Subject: [PATCH] Remove a reference to GAE users. (#1363) --- pages/users.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pages/users.py b/pages/users.py index d34e4124..ad35ec74 100644 --- a/pages/users.py +++ b/pages/users.py @@ -25,7 +25,6 @@ import logging import os # App Engine imports. -from google.appengine.api import users from google.appengine.ext import ndb import flask @@ -35,6 +34,8 @@ from framework import permissions from internals import models import settings +LOGIN_PAGE_URL = '/features?loginStatus=False' + class UserListHandler(basehandlers.FlaskHandler): @@ -60,7 +61,7 @@ class SettingsHandler(basehandlers.FlaskHandler): def get_template_data(self): user_pref = models.UserPref.get_signed_in_user_pref() if not user_pref: - return flask.redirect(users.create_login_url(flask.request.path)) + return flask.redirect(LOGIN_PAGE_URL) template_data = { 'user_pref': user_pref,