Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
[zfcampus/zf-oauth2#27] Fix oauth2 form submission
Browse files Browse the repository at this point in the history
Form submission was broken due to having conditionally showing elements that
were marked required. Removed "required" flag from all conditional elements.
  • Loading branch information
weierophinney committed Mar 1, 2014
1 parent 17e1b71 commit b8bb636
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h4 class="panel-title">Setup OAuth2 Authentication</h4>

<div class="form-group" ng-show="dsn_type == 'PDO'">
<label class="control-label" for="dsn">PDO DSN</label>
<input type="text" placeholder="sqlite::memory:" class="form-control input-xlarge" required="required" ng-model="dsn">
<input type="text" placeholder="sqlite::memory:" class="form-control input-xlarge" ng-model="dsn">
<p class="help-block">The PDO database source name (DSN).</p>
</div>

Expand All @@ -34,7 +34,7 @@ <h4 class="panel-title">Setup OAuth2 Authentication</h4>

<div class="form-group" ng-show="dsn_type && (dsn_type == 'Mongo')">
<label class="control-label" for="database">Mongo Database</label>
<input type="text" class="form-control input-xlarge" required="required" ng-model="database">
<input type="text" class="form-control input-xlarge" ng-model="database">
<p class="help-block">The Mongo database name.</p>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ <h4 class="panel-title">
<fieldset>
<div class="form-group" ng-show="oauth2.dsn_type == 'PDO'">
<label class="control-label" for="dsn">PDO DSN</label>
<input type="text" placeholder="sqlite::memory:" class="form-control input-xlarge" required="required" ng-model="oauth2.dsn">
<input type="text" placeholder="sqlite::memory:" class="form-control input-xlarge" ng-model="oauth2.dsn">
<p class="help-block">The PDO database source name (DSN).</p>
</div>

Expand All @@ -84,7 +84,7 @@ <h4 class="panel-title">

<div class="form-group" ng-show="oauth2.dsn_type == 'Mongo'">
<label class="control-label" for="database">Mongo Database</label>
<input type="text" class="form-control input-xlarge" required="required" ng-model="oauth2.database">
<input type="text" class="form-control input-xlarge" ng-model="oauth2.database">
<p class="help-block">The Mongo database name.</p>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h4 class="panel-title">Setup OAuth2 Authentication</h4>

<div class="form-group" ng-show="dsn_type == 'PDO'">
<label class="control-label" for="dsn">PDO DSN</label>
<input type="text" placeholder="sqlite::memory:" class="form-control input-xlarge" required="required" ng-model="dsn">
<input type="text" placeholder="sqlite::memory:" class="form-control input-xlarge" ng-model="dsn">
<p class="help-block">The PDO database source name (DSN).</p>
</div>

Expand All @@ -34,7 +34,7 @@ <h4 class="panel-title">Setup OAuth2 Authentication</h4>

<div class="form-group" ng-show="dsn_type && (dsn_type == 'Mongo')">
<label class="control-label" for="database">Mongo Database</label>
<input type="text" class="form-control input-xlarge" required="required" ng-model="database">
<input type="text" class="form-control input-xlarge" ng-model="database">
<p class="help-block">The Mongo database name.</p>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ <h4 class="panel-title">
<fieldset>
<div class="form-group" ng-show="oauth2.dsn_type == 'PDO'">
<label class="control-label" for="dsn">PDO DSN</label>
<input type="text" placeholder="sqlite::memory:" class="form-control input-xlarge" required="required" ng-model="oauth2.dsn">
<input type="text" placeholder="sqlite::memory:" class="form-control input-xlarge" ng-model="oauth2.dsn">
<p class="help-block">The PDO database source name (DSN).</p>
</div>

Expand All @@ -94,7 +94,7 @@ <h4 class="panel-title">

<div class="form-group" ng-show="oauth2.dsn_type == 'Mongo'">
<label class="control-label" for="database">Mongo Database</label>
<input type="text" class="form-control input-xlarge" required="required" ng-model="oauth2.database">
<input type="text" class="form-control input-xlarge" ng-model="oauth2.database">
<p class="help-block">The Mongo database name.</p>
</div>

Expand Down

0 comments on commit b8bb636

Please # to comment.