Commit 3e9e7a18 authored by Daniele Venzano's avatar Daniele Venzano
Browse files

Remove unused files

parent 7ec50943
# Copyright (c) 2016, Daniele Venzano
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from flask import Response
def missing_auth():
"""Sends a 401 response that enables basic auth"""
return Response('Could not verify your access level for that URL.\nYou have to login with proper credentials',
401,
{'WWW-Authenticate': 'Basic realm="Login Required"'})
from wtforms import Form, StringField, validators
class LoginWithGuestIDForm(Form):
guest_identifier = StringField('Guest ID', [validators.Length(min=4, max=16)])
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