- Move MD5 functions to core util where i2ptunnel can use them

This commit is contained in:
zzz
2012-10-15 12:28:45 +00:00
parent ba37839adf
commit 977cdee046
3 changed files with 48 additions and 52 deletions

View File

@@ -70,8 +70,7 @@ public class ConfigUIHandler extends FormHandler {
}
ConsolePasswordManager mgr = new ConsolePasswordManager(_context);
// rfc 2617
pw = name + ':' + RouterConsoleRunner.JETTY_REALM + ':' + pw;
if (mgr.saveMD5(RouterConsoleRunner.PROP_CONSOLE_PW, name, pw)) {
if (mgr.saveMD5(RouterConsoleRunner.PROP_CONSOLE_PW, RouterConsoleRunner.JETTY_REALM, name, pw)) {
addFormNotice(_("Added user {0}", name));
addFormNotice(_("Restart required to take effect"));
} else {