Skip to content

Commit

Permalink
login bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xjsender committed Mar 22, 2015
1 parent 45ec303 commit 44010a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions controller/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ exports.login = function(req, res, next) {
req.session.oauth2 = {
loginUrl: req.body.login_url,
clientId: req.body.client_id,
clientSecret: req.body.client_secret,
redirectUri: req.body.redirect_uri
}

Expand Down
3 changes: 3 additions & 0 deletions views/template/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ <h4 class="modal-title">Connect to Salesforce</h4>
<input type="text" id="client_id" name="client_id"
class="form-control" placeholder="Client ID" required="true" autofocus="true">

<input type="text" id="client_secret" name="client_secret"
class="form-control" placeholder="Client Secret" required="true" autofocus="true">

<input type="text" id="redirect_uri" name="redirect_uri"
class="form-control" placeholder="Redirect URI" required="true">
</div>
Expand Down

0 comments on commit 44010a7

Please sign in to comment.