Browse Source

HUE-8014 [core] Login with wrong password reloads page without message

jdesjean 7 years ago
parent
commit
2111965a9e
2 changed files with 4 additions and 1 deletions
  1. 3 0
      desktop/core/src/desktop/auth/views.py
  2. 1 1
      desktop/core/src/desktop/urls.py

+ 3 - 0
desktop/core/src/desktop/auth/views.py

@@ -80,6 +80,9 @@ def first_login_ever():
       return True
   return False
 
+# We want unique method name to represent HUE-3 vs HUE-4 method call. This is required because of urlresolvers.reverse('desktop.auth.views.dt_login') below which needs uniqueness to work correctly
+def dt_login_old(request, from_modal=False):
+  return dt_login(request, from_modal)
 
 @login_notrequired
 @watch_login

+ 1 - 1
desktop/core/src/desktop/urls.py

@@ -53,7 +53,7 @@ admin.autodiscover()
 # Some django-wide URLs
 dynamic_patterns = patterns('desktop.auth.views',
   (r'^hue/accounts/login/$', 'dt_login'),
-  (r'^accounts/login/$', 'dt_login'), # Deprecated
+  (r'^accounts/login/$', 'dt_login_old'), # Deprecated
   (r'^accounts/logout/$', 'dt_logout', {'next_page': '/'}),
   (r'^profile$', 'profile'),
   (r'^login/oauth/?$', 'oauth_login'),