From d4c35c39e4da64c42869bba806a6e4fefb8db379 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Fri, 23 Sep 2016 16:53:09 +0200 Subject: Remove dead ruby code around editable_password? --- .../app/views/account/notifications.html.erb | 75 ---------------------- .../main/webapp/WEB-INF/lib/need_authentication.rb | 12 ---- 2 files changed, 87 deletions(-) delete mode 100644 server/sonar-web/src/main/webapp/WEB-INF/app/views/account/notifications.html.erb (limited to 'server/sonar-web/src') diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/account/notifications.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/account/notifications.html.erb deleted file mode 100644 index 29ac2b1ce1d..00000000000 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/account/notifications.html.erb +++ /dev/null @@ -1,75 +0,0 @@ -
- -
-
-
- <% if configuration('sonar.lf.enableGravatar', 'true') == 'true' %> -
- <% end %> -

<%= current_user.name -%>

-

<%= current_user.login -%>

-
-

<%= current_user.email -%>

-
-
- -
-

<%= message('my_profile.groups') -%>

-
    - <% current_user.groups.sort.each do |group| -%> -
  • <%= group.name -%>
  • - <% end -%> -
-
- -
-

<%= message('my_profile.scm_accounts') -%>

-
    - <% current_user.full_scm_accounts.each do |scm_account| -%> -
  • <%= scm_account -%>
  • - <% end -%> -
-
- - <% if User.editable_password? %> -
- -
- <% end %> -
-
- -
- <% unless current_user.favourites.empty? -%> -
- <%= render "account/favorites" -%> -
- <% end %> - -
- <% unless @global_dispatchers.empty? -%> -
- <%= render "account/global_notifications" -%> -
- <% end %> - - <% unless @per_project_dispatchers.empty? -%> -
- <%= render "account/per_project_notifications" -%> -
- <% end %> - -
- -
-
- -
-
-
- -<% content_for :extra_script do %> - -<% end %> diff --git a/server/sonar-web/src/main/webapp/WEB-INF/lib/need_authentication.rb b/server/sonar-web/src/main/webapp/WEB-INF/lib/need_authentication.rb index 48b791a2824..3d25c117168 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/lib/need_authentication.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/lib/need_authentication.rb @@ -34,10 +34,6 @@ class DefaultRealm end result end - - def editable_password? - true - end end # @@ -213,10 +209,6 @@ class PluginRealm end end end - - def editable_password? - false - end end # @@ -267,10 +259,6 @@ module NeedAuthentication RealmFactory.realm.authenticate?(login, password, servlet_request) if RealmFactory.realm end - - def editable_password? - RealmFactory.realm && RealmFactory.realm.editable_password? - end end end end -- cgit v1.2.3