Skip to content
This repository was archived by the owner on Mar 13, 2020. It is now read-only.

Commit 62d02c7

Browse files
committed
Moved redirect URI to global variable.
1 parent c1a98ba commit 62d02c7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎home.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
require('outlook.php');
66

77
$loggedIn = !is_null($_SESSION['access_token']);
8+
$redirectUri = 'http://localhost/php-tutorial/authorize.php';
89
?>
910

1011
<html>
@@ -16,7 +17,7 @@
1617
if (!$loggedIn) {
1718
?>
1819
<!-- User not logged in, prompt for login -->
19-
<p>Please <a href="<?php echo oAuthService::getLoginUrl('http://localhost/php-tutorial/authorize.php')?>">sign in</a> with your Office 365 account.</p>
20+
<p>Please <a href="<?php echo oAuthService::getLoginUrl($redirectUri)?>">sign in</a> with your Office 365 account.</p>
2021
<?php
2122
}
2223
else {

0 commit comments

Comments
 (0)