Up Version with API
This commit is contained in:
parent
9d0e9e8069
commit
b41897dc98
3 changed files with 12 additions and 3 deletions
|
@ -33,8 +33,8 @@ viewAdministrator = Blueprint('administrator', __name__, url_prefix='/administra
|
||||||
@viewAdministrator.route('/login.html', methods=['GET', 'POST'])
|
@viewAdministrator.route('/login.html', methods=['GET', 'POST'])
|
||||||
def login():
|
def login():
|
||||||
if request.method == 'POST':
|
if request.method == 'POST':
|
||||||
admin_email = request.form['email'].encode('utf-8')
|
admin_email = request.form.get('email').encode('utf-8')
|
||||||
admin_password = request.form['password'].encode('utf-8')
|
admin_password = request.form.get('password').encode('utf-8')
|
||||||
|
|
||||||
# validation entered data
|
# validation entered data
|
||||||
if not validators.email(admin_email):
|
if not validators.email(admin_email):
|
||||||
|
|
7
cloud-runserver-admin.py
Normal file
7
cloud-runserver-admin.py
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
from SWSCloudAdministrator import app
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
app.run(host='0.0.0.0', port=5003, debug=True)
|
4
setup.py
4
setup.py
|
@ -4,7 +4,7 @@ from setuptools import setup
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='SWSCloudCore',
|
name='SWSCloudCore',
|
||||||
version='2.5.5',
|
version='2.5.6',
|
||||||
author='Vyacheslav Anzhiganov',
|
author='Vyacheslav Anzhiganov',
|
||||||
author_email='hello@anzhiganov.com',
|
author_email='hello@anzhiganov.com',
|
||||||
packages=[
|
packages=[
|
||||||
|
@ -76,6 +76,7 @@ setup(
|
||||||
'templates/default/vms/*.html',
|
'templates/default/vms/*.html',
|
||||||
'templates/email/simple/*.html',
|
'templates/email/simple/*.html',
|
||||||
'templates/email/simple/*.css',
|
'templates/email/simple/*.css',
|
||||||
|
# Errors
|
||||||
'templates/errors/*.html',
|
'templates/errors/*.html',
|
||||||
],
|
],
|
||||||
'SWSCloudAdministrator': [
|
'SWSCloudAdministrator': [
|
||||||
|
@ -116,6 +117,7 @@ setup(
|
||||||
'cloud-settings.py',
|
'cloud-settings.py',
|
||||||
'cloud-settings-init.py',
|
'cloud-settings-init.py',
|
||||||
'cloud-runserver.py',
|
'cloud-runserver.py',
|
||||||
|
'cloud-runserver-admin.py',
|
||||||
# accounts
|
# accounts
|
||||||
'cloud-admin-add.py',
|
'cloud-admin-add.py',
|
||||||
# 'swscloud-admin-delete.py',
|
# 'swscloud-admin-delete.py',
|
||||||
|
|
Loading…
Add table
Reference in a new issue