mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
* refactor: move ResetUserPassword into UserServiceAdmin
This commit is contained in:
@@ -251,18 +251,6 @@ namespace OpenSim.Framework.Communications
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// Reset a user password
|
||||
/// </summary>
|
||||
/// <param name="firstName"></param>
|
||||
/// <param name="lastName"></param>
|
||||
/// <param name="newPassword"></param>
|
||||
/// <returns>true if the update was successful, false otherwise</returns>
|
||||
public bool ResetUserPassword(string firstName, string lastName, string newPassword)
|
||||
{
|
||||
return m_userServiceAdmin.ResetUserPassword(firstName, lastName, newPassword);
|
||||
}
|
||||
|
||||
#region Friend Methods
|
||||
|
||||
|
||||
@@ -73,7 +73,6 @@ namespace OpenSim
|
||||
base.StartupSpecific();
|
||||
}
|
||||
|
||||
|
||||
protected override void InitialiseStandaloneServices(LibraryRootFolder libraryRootFolder)
|
||||
{
|
||||
// Standalone mode
|
||||
|
||||
@@ -830,7 +830,7 @@ namespace OpenSim
|
||||
newPassword = MainConsole.Instance.PasswdPrompt("New password");
|
||||
else newPassword = cmdparams[4];
|
||||
|
||||
m_commsManager.ResetUserPassword(firstName, lastName, newPassword);
|
||||
m_commsManager.UserServiceAdmin.ResetUserPassword(firstName, lastName, newPassword);
|
||||
}
|
||||
|
||||
protected void SaveXml(string[] cmdparams)
|
||||
|
||||
Reference in New Issue
Block a user