OK, I found the Login.ShowPasswordChangeForm() method. I call it and the user name is set. I then successfully change the password (rather the method returns true).
I then go to test it. I log off and try to log back on with the new password (I stay within the application, just change the current user), I get an exception:
ArgumentException
An entry with the same key already exists.
Source : System
Stack Trace:
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.TreeSet`1.Add(T item)
at System.Collections.Generic.SortedDictionary`2.Add(TKey key, TValue value)
at MicroFour.StrataFrame.Security.Login.AuthenticateUser(String Username, String Password, String Domain, SFSUsersBO& User)
at MicroFour.StrataFrame.Security.Login.AttemptLogin(Object sender, EventArgs e)
at FOXSystems.RAMS.RAMSLoginForm.OnAttemptLogin() in RAMSLoginForm.vb:line 38
at FOXSystems.RAMS.RAMSLoginForm.btnOk_Click(Object sender, EventArgs e) in RAMSLoginForm.vb:line 322
...etc.
Note I'm using my own login form.
When I exit the application and attempt to login, the login fails, saying the credentials provided can't be authenticated.
I must be missing something, because I'm pretty sure this method/form is well used by many of you...
Any help appreciated!