Remove a reference to GAE users. (#1363)
This commit is contained in:
Родитель
299516574f
Коммит
ba4cabcfc6
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче