Skip to content

Commit 1b70b25

Browse files
authored
Disable some more of Register during Login (#1180)
* Don't select default auth. * Hide some more of the items that are disabled * Put a local page reload in the alert in case the nav bar is collapsed. `history.go(0)` only attempts reloads the page and no other resources. Applies to #1174 Auto-merge
1 parent a04a9b7 commit 1b70b25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

views/pages/loginPage.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ <h3>
3232
</h3>
3333
<div class="input-group">
3434
<span class="input-group-addon"><i class="fa fa-user fa-fw"></i></span>
35-
<input class="form-control" type="text" name="username" value="{{wantname}}" placeholder="Username"{{^wantname}} disabled="disabled"{{/wantname}}>
35+
<input class="form-control" type="text" name="username" value="{{wantname}}"{{#wantname}} placeholder="Username"{{/wantname}}{{^wantname}} disabled="disabled"{{/wantname}}>
3636
<span class="input-group-btn">
3737
<select name="auth" class="btn btn-addon-default" style="border-radius: 0px;">
3838
{{#strategies}}
39-
<option value="{{strat}}" {{#selected}}selected="selected"{{/selected}}{{^wantname}} disabled="disabled"{{/wantname}}>{{display}}</option>
39+
<option value="{{strat}}" {{#wantname}}{{#selected}}selected="selected"{{/selected}}{{/wantname}}{{^wantname}} disabled="disabled"{{/wantname}}>{{display}}</option>
4040
{{/strategies}}
4141
</select>
4242
</span>
@@ -45,7 +45,7 @@ <h3>
4545
</span>
4646
</div>
4747
<div class="alert alert-warning small" role="alert">
48-
<i class="fa fa-exclamation-triangle"></i> <strong>CAUTION</strong>: The unique Username that you choose to attach here will be displayed to everyone as shown above. It is strongly recommended to <strong>not</strong> use an email address.<br><br>Additional changes to the Username above may include additional sanitizing for web friendly urls and Userscript engine compatibility. If you wish to see the sanitization changes please reload this page and start over.
48+
<i class="fa fa-exclamation-triangle"></i> <strong>CAUTION</strong>: The unique Username that you choose to attach here will be displayed to everyone as shown above. It is strongly recommended to <strong>not</strong> use an email address.<br><br>Additional changes to the registering Username above may include additional sanitizing for web friendly URLs and Userscript engine compatibility. If you wish to see the sanitization changes please <a href="javascript:void(0);" onclick="history.go(0)">reload this page</a> and start over.
4949
</div>
5050
</form>
5151
</div>

0 commit comments

Comments
 (0)