diff --git a/LyricsPy/K8S/Makefile b/LyricsPy/K8S/Makefile index aba6cd3..e27b90c 100644 --- a/LyricsPy/K8S/Makefile +++ b/LyricsPy/K8S/Makefile @@ -1,4 +1,4 @@ -export IMG_VERSION = 6.4 +export IMG_VERSION = 6.5 imagen: cd ../servicios; make diff --git a/LyricsPy/servicios/lyrics/auth.py b/LyricsPy/servicios/lyrics/auth.py index e24dbbb..10c40e3 100644 --- a/LyricsPy/servicios/lyrics/auth.py +++ b/LyricsPy/servicios/lyrics/auth.py @@ -39,10 +39,15 @@ def signup(): @bp.route('/signup', methods=['POST']) def signup_post(): - username = request.form['username'] - password = request.form['password'] - confirm_password = request.form['confirm_password'] - photo = request.files['fotoperfil'] + if 'photo' not in request.files: + flash('No file part') + return redirect(request.url) + + username = request.form.get('username') +# email = request.form.get('email') + password = request.form.get('password') + confirm_password = request.form.get('confirm_password') + photo = request.files['photo'] if password != confirm_password: flash('Passwords do not match.') @@ -71,8 +76,9 @@ def signup_post(): return redirect(url_for('auth.login')) + @bp.route('/logout') @login_required def logout(): logout_user() - return redirect(url_for('paginas.index')) + return redirect(url_for('paginas.index')) \ No newline at end of file diff --git a/LyricsPy/servicios/lyrics/templates/signup.html b/LyricsPy/servicios/lyrics/templates/signup.html index add680a..0bce258 100644 --- a/LyricsPy/servicios/lyrics/templates/signup.html +++ b/LyricsPy/servicios/lyrics/templates/signup.html @@ -18,17 +18,17 @@ {% endif %} {% endwith %} -