From 0c1ff57785f203c7562f211faa1af20c201ed3e0 Mon Sep 17 00:00:00 2001 From: devplanete Date: Fri, 28 Feb 2014 17:26:55 +0100 Subject: [PATCH] Update Config.php - Add setPrompt function --- src/Google/Config.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Google/Config.php b/src/Google/Config.php index efd887eae..c637250e6 100644 --- a/src/Google/Config.php +++ b/src/Google/Config.php @@ -268,7 +268,17 @@ public function setApprovalPrompt($approval) { $this->setAuthConfig('approval_prompt', $approval); } - + + /** + * Set the prompt parameter + * can be empty ('') or combination of (none, consent, select_account) + * @param $prompt string - the prompt param value + */ + public function setPrompt($prompt) + { + $this->setAuthConfig('prompt', $prompt); + } + /** * Set the developer key for the auth class. Note that this is separate value * from the client ID - if it looks like a URL, its a client ID!