Skip to content

Commit

Permalink
Readline ignores \n - add space between authorization URL and the sec…
Browse files Browse the repository at this point in the history
…ond part of the promt
  • Loading branch information
mnovozhylov committed Jul 26, 2017
1 parent e1eb7e0 commit fe34f2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Upwork/API/AuthTypes/AbstractOAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ public function auth()
header('Location: ' . $authUrl);
} elseif (self::$_mode === 'nonweb') {
// authorize nonweb application
ApiDebug::p('found [nonweb] mode, need to autorize application manually');
ApiDebug::p('found [nonweb] mode, need to authorize application manually');

$prompt = 'Visit ' . $authUrl . "\n" .
$prompt = 'Visit ' . $authUrl . "\n " .
'and provide oauth_verifier for further authorization' . "\n" .
'$ ';
if (PHP_OS == 'WINNT') {
Expand Down

0 comments on commit fe34f2d

Please sign in to comment.