]> granicus.if.org Git - ejabberd/commitdiff
Don't provide current password in webinterface (github issue #137)
authorBadlop <badlop@process-one.net>
Wed, 26 Feb 2014 16:18:12 +0000 (17:18 +0100)
committerBadlop <badlop@process-one.net>
Wed, 26 Feb 2014 16:19:07 +0000 (17:19 +0100)
src/ejabberd_web_admin.erl

index a1c4b25a987d58df9a63de07ed9e5cec7b544eb1..7a676f674404291ca024629f1097c42076a19256 100644 (file)
@@ -1570,9 +1570,7 @@ user_info(User, Server, Query, Lang) ->
                         end,
                         lists:sort(Resources))))]
         end,
-    Password = ejabberd_auth:get_password_s(User, Server),
-    FPassword = [?INPUT(<<"password">>, <<"password">>,
-                       Password),
+    FPassword = [?INPUT(<<"text">>, <<"password">>, <<"">>),
                 ?C(<<" ">>),
                 ?INPUTT(<<"submit">>, <<"chpassword">>,
                         <<"Change Password">>)],