diff options
author | Edan Binshtok <eb578m@intl.att.com> | 2017-11-19 11:42:55 +0200 |
---|---|---|
committer | Edan Binshtok <eb578m@intl.att.com> | 2017-11-19 11:43:15 +0200 |
commit | a9ef6f094a2bcf1fd7a0b7c2aaf814841db558ec (patch) | |
tree | 81a3f8436f9e6af07c3070c74f3a0543c2ca5eff /django/engagementmanager/rest/login.py | |
parent | c169d08d437ccb62fd79ade759077b874f00b1c3 (diff) |
Pep8 more fixes
Update base files to pass pep8 strict standarts.
Issue-ID: VVP-25
Change-Id: If9ef80abf7fbc33ea181dfc2eb73c27ddd6ddc3e
Signed-off-by: Edan Binshtok <eb578m@intl.att.com>
Diffstat (limited to 'django/engagementmanager/rest/login.py')
-rw-r--r-- | django/engagementmanager/rest/login.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/django/engagementmanager/rest/login.py b/django/engagementmanager/rest/login.py index 53b906b..ddc5df4 100644 --- a/django/engagementmanager/rest/login.py +++ b/django/engagementmanager/rest/login.py @@ -1,5 +1,5 @@ -# -# ============LICENSE_START========================================== +# +# ============LICENSE_START========================================== # org.onap.vvp/engagementmgr # =================================================================== # Copyright © 2017 AT&T Intellectual Property. All rights reserved. @@ -36,7 +36,6 @@ # ============LICENSE_END============================================ # # ECOMP is a trademark and service mark of AT&T Intellectual Property. -import json from rest_framework.permissions import AllowAny from rest_framework.response import Response @@ -64,7 +63,9 @@ class Login(VvpApiView): if param: reset_password_param = param - reset_password_email, is_reset_pwd_flow = login_svc.identify_reset_password(jwt_obj, reset_password_param) + reset_password_email, is_reset_pwd_flow = login_svc.\ + identify_reset_password( + jwt_obj, reset_password_param) if not user_profile.user.is_active: msg = login_svc.render_user_not_active_message(data['email']) @@ -82,7 +83,9 @@ class Login(VvpApiView): if 'invitation' in data: login_svc.handle_invite_token(data, msg, user_profile) - self.logger.debug("login has passed successfully for [email=" + data['email'] + "]") + self.logger.debug( + "login has passed successfully for [email=" + data['email'] + + "]") login_svc.update_last_login(user_profile) return Response(msg) |