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
|
@ -16,5 +16,5 @@ using System.Reflection;
|
||||||
//
|
//
|
||||||
// You can specify all the values or you can default the Revision and Build Numbers
|
// You can specify all the values or you can default the Revision and Build Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
[assembly: AssemblyVersion("3.0.2.506")]
|
[assembly: AssemblyVersion("3.0.2.507")]
|
||||||
[assembly: AssemblyFileVersion("3.0.2.506")]
|
[assembly: AssemblyFileVersion("3.0.2.507")]
|
||||||
|
|
|
@ -657,6 +657,8 @@ namespace ScrewTurn.Wiki {
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="username">The username.</param>
|
/// <param name="username">The username.</param>
|
||||||
public static void NotifyLogout(string username) {
|
public static void NotifyLogout(string username) {
|
||||||
|
if(string.IsNullOrEmpty(username)) return;
|
||||||
|
|
||||||
UserInfo user = FindUser(username);
|
UserInfo user = FindUser(username);
|
||||||
if(user != null) {
|
if(user != null) {
|
||||||
IUsersStorageProviderV30 prov = user.Provider as IUsersStorageProviderV30;
|
IUsersStorageProviderV30 prov = user.Provider as IUsersStorageProviderV30;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue