diff --git a/fbone/api/views.py b/fbone/api/views.py index 0f87847..1160d2e 100644 --- a/fbone/api/views.py +++ b/fbone/api/views.py @@ -11,7 +11,7 @@ @api.route('/login', methods=['POST']) def login(): - if current_user.is_authenticated(): + if current_user.is_authenticated: return jsonify(flag='success') username = request.form.get('username') @@ -28,6 +28,6 @@ def login(): @api.route('/logout') def logout(): - if current_user.is_authenticated(): + if current_user.is_authenticated: logout_user() return jsonify(flag='success', msg='Logouted.') diff --git a/fbone/frontend/views.py b/fbone/frontend/views.py index 0c1c9f5..0f45a3f 100644 --- a/fbone/frontend/views.py +++ b/fbone/frontend/views.py @@ -19,7 +19,7 @@ @frontend.route('/login/openid', methods=['GET', 'POST']) @oid.loginhandler def login_openid(): - if current_user.is_authenticated(): + if current_user.is_authenticated: return redirect(url_for('user.index')) form = OpenIDForm() @@ -43,7 +43,7 @@ def create_or_login(resp): @frontend.route('/create_profile', methods=['GET', 'POST']) def create_profile(): - if current_user.is_authenticated(): + if current_user.is_authenticated: return redirect(url_for('user.index')) form = CreateProfileForm(name=request.args.get('name'), @@ -66,7 +66,7 @@ def create_profile(): def index(): current_app.logger.debug('debug') - if current_user.is_authenticated(): + if current_user.is_authenticated: return redirect(url_for('user.index')) page = int(request.args.get('page', 1)) @@ -88,7 +88,7 @@ def search(): @frontend.route('/login', methods=['GET', 'POST']) def login(): - if current_user.is_authenticated(): + if current_user.is_authenticated: return redirect(url_for('user.index')) form = LoginForm(login=request.args.get('login', None), @@ -137,7 +137,7 @@ def logout(): @frontend.route('/signup', methods=['GET', 'POST']) def signup(): - if current_user.is_authenticated(): + if current_user.is_authenticated: return redirect(url_for('user.index')) form = SignupForm(next=request.args.get('next')) @@ -159,7 +159,7 @@ def signup(): @frontend.route('/change_password', methods=['GET', 'POST']) def change_password(): user = None - if current_user.is_authenticated(): + if current_user.is_authenticated: if not login_fresh(): return login_manager.needs_refresh() user = current_user diff --git a/fbone/static/css/bootstrap.css b/fbone/static/css/bootstrap.css old mode 100755 new mode 100644 diff --git a/fbone/static/css/bootstrap.css.map b/fbone/static/css/bootstrap.css.map old mode 100755 new mode 100644 diff --git a/fbone/static/css/main.css b/fbone/static/css/main.css old mode 100755 new mode 100644 diff --git a/fbone/static/css/normalize.css b/fbone/static/css/normalize.css old mode 100755 new mode 100644 diff --git a/fbone/static/js/vendor/jquery-1.10.2.min.js b/fbone/static/js/vendor/jquery-1.10.2.min.js old mode 100755 new mode 100644 diff --git a/fbone/static/js/vendor/modernizr-2.6.2.min.js b/fbone/static/js/vendor/modernizr-2.6.2.min.js old mode 100755 new mode 100644 diff --git a/fbone/templates/layouts/base.html b/fbone/templates/layouts/base.html index 04d2cea..f8e6ba7 100644 --- a/fbone/templates/layouts/base.html +++ b/fbone/templates/layouts/base.html @@ -54,7 +54,7 @@