Skip to content
This repository has been archived by the owner on Mar 20, 2019. It is now read-only.

Commit

Permalink
OpenIdTextBox now honors Popup == PopupBehavior.Never.
Browse files Browse the repository at this point in the history
Fixes #126.
  • Loading branch information
AArnott committed Sep 13, 2009
1 parent 35275b2 commit c32f95a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdTextBox.cs
Expand Up @@ -1221,7 +1221,16 @@ public class OpenIdTextBox : CompositeControl, IEditableTextControl, ITextContro
private bool IsPopupAppropriate() {
Contract.Requires(this.Request != null);

return this.Popup == PopupBehavior.Always || this.Request.Provider.IsExtensionSupported<UIRequest>();
switch (this.Popup) {
case PopupBehavior.Never:
return false;
case PopupBehavior.Always:
return true;
case PopupBehavior.IfProviderSupported:
return this.Request.Provider.IsExtensionSupported<UIRequest>();
default:
throw new InternalErrorException();
}
}

/// <summary>
Expand Down

0 comments on commit c32f95a

Please sign in to comment.