Authentication

Global settings
This commit is contained in:
Ruud committed 2011-02-13 02:53:21 +01:00
1 parent 38a9ae2592
commit 21f880e030
4 files changed
+41 -10

No files matched your search

+4 -1
View File
@@ -1,6 +1,8 @@
from couchpotato.core.auth import requires_auth
from couchpotato.core.logger import CPLog
from flask import Flask, Module
from flask.app import Flask
from flask.helpers import url_for
from flask.module import Module
from flask.templating import render_template
app = Flask(__name__)
@@ -9,5 +11,6 @@ web = Module(__name__, 'web')
@web.route('/')
@requires_auth
def index():
return render_template('index.html')