Fixed #500: correctly handling logout procedure performed with null username.
This commit is contained in:
parent
c7a05066d3
commit
3a67e81208
2 changed files with 4 additions and 2 deletions
|
@ -657,6 +657,8 @@ namespace ScrewTurn.Wiki {
|
|||
/// </summary>
|
||||
/// <param name="username">The username.</param>
|
||||
public static void NotifyLogout(string username) {
|
||||
if(string.IsNullOrEmpty(username)) return;
|
||||
|
||||
UserInfo user = FindUser(username);
|
||||
if(user != null) {
|
||||
IUsersStorageProviderV30 prov = user.Provider as IUsersStorageProviderV30;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue