Skip to content

Commit

Permalink
Fixed oauth authorize path
Browse files Browse the repository at this point in the history
  • Loading branch information
aalonsog committed Oct 9, 2018
1 parent 5e3c30b commit 36ba12a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions controllers/oauth2/oauth2.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ exports.check_user = function(req, res, next) {
} else {
var render_values = {
application: {
url: req.url,
name: req.application.name,
description: req.application.description,
response_type: req.query.response_type,
Expand Down
2 changes: 1 addition & 1 deletion views/oauth/_login.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="modal-header">
<h3>Log In</h3>
</div>
<form id="form_submit_authentication" ng-controller="DummyCtrl" name="" autocomplete="on" class="" action="/oauth2/authorize?response_type=<%= application.response_type %>&client_id=<%= application.id %>&state=<%= application.state %>&redirect_uri=<%= application.redirect_uri %>" method="POST" enctype="">
<form id="form_submit_authentication" ng-controller="DummyCtrl" name="" autocomplete="on" class="" action="/oauth2/<%= application.url %>" method="POST" enctype="">
<div class="modal-body clearfix">
<% var nameErrors = [] %>
<% if (errors.length) { %>
Expand Down

0 comments on commit 36ba12a

Please sign in to comment.