[OpenSim] Feature Request: Allow passwords up to 24 characters long

This commit is contained in:
Lirusaito
2019-02-28 13:56:18 -05:00
parent e3fe8d046a
commit e89e57b5a0
2 changed files with 2 additions and 2 deletions

View File

@@ -459,7 +459,7 @@ void LLPanelLogin::mungePassword(const std::string& password)
}
else
{
LLMD5 pass((unsigned char *)utf8str_truncate(password, 16).c_str());
LLMD5 pass((unsigned char *)utf8str_truncate(password, gHippoGridManager->getCurrentGrid()->isOpenSimulator() ? 24 : 16).c_str());
char munged_password[MD5HEX_STR_SIZE];
pass.hex_digest(munged_password);
mMungedPassword = munged_password;

View File

@@ -35,7 +35,7 @@
</text>
<line_editor bevel_style="in" border_style="line" border_thickness="1" bottom_delta="-20"
follows="left|bottom" font="SansSerifSmall" handle_edit_keys_directly="true"
height="20" left="4" max_length="16" mouse_opaque="true"
height="20" left="4" max_length="24" mouse_opaque="true"
name="password_edit" select_all_on_focus_received="true" width="115" />
</layout_panel>
<layout_panel name="grids_panel" left="0" user_resize="false" auto_resize="false" width="143" min_width="0" visibility_control="ForceShowGrid">