Fixed #500: correctly handling logout procedure performed with null username.

This commit is contained in:
Dario Solera 2010-02-28 13:44:36 +00:00
parent c7a05066d3
commit 3a67e81208
2 changed files with 4 additions and 2 deletions

View file

@ -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;