make it so we can stuff a value given to us by the user from a Prompt()

can be stuffed into the single signon database, just like a password
can be.  auth news needs this.  r=dp,alecf


git-svn-id: svn://10.0.0.236/trunk@59384 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sspitzer%netscape.com
2000-02-01 08:43:48 +00:00
parent 5c23afe0e2
commit 74e6873438
4 changed files with 127 additions and 3 deletions

View File

@@ -2825,6 +2825,7 @@ NS_IMETHODIMP nsWebShellWindow::PromptUsernameAndPassword(const char *url, const
return wallet->PromptUsernameAndPasswordURL(text,user, pwd, url, prompter, _retval);
}
NS_IMETHODIMP nsWebShellWindow::PromptPassword(const char *url, const PRUnichar *title, const PRUnichar *text, PRUnichar **pwd, PRBool *_retval)
{
nsresult res;
@@ -2836,3 +2837,13 @@ NS_IMETHODIMP nsWebShellWindow::PromptPassword(const char *url, const PRUnichar
return wallet->PromptPasswordURL(text, pwd, url, prompter, _retval);
}
NS_IMETHODIMP nsWebShellWindow::Prompt(const char *url, const PRUnichar *title, const PRUnichar *text, PRUnichar **value, PRBool *_retval)
{
nsresult res;
NS_WITH_SERVICE(nsIWalletService, wallet, kWalletServiceCID, &res);
if (NS_FAILED(res)) {
return Prompt(text, title, value, _retval);
}
nsCOMPtr<nsIPrompt> prompter = this;
return wallet->PromptURL(text, nsnull, value, url, prompter, _retval);
}