Skip to content

Commit

Permalink
API token input is now required
Browse files Browse the repository at this point in the history
Add required attribute on the input, and asterisk in front of label.

Fixes #26623
  • Loading branch information
dregad committed Jan 27, 2020
1 parent 71a8380 commit dc69978
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions api_tokens_page.php
Expand Up @@ -71,10 +71,16 @@

<tr>
<td class="category">
<?php echo lang_get( 'api_token_name' ) ?>
<span class="required">*</span>
<label for="token_name" class="required">
<?php echo lang_get( 'api_token_name' ) ?>
</label>
</td>
<td>
<input class="input-sm" id="token_name" type="text" name="token_name" size="64" maxlength="<?php echo DB_FIELD_SIZE_API_TOKEN_NAME; ?>" />
<input id="token_name" name="token_name"
type="text" required class="input-sm" size="64"
maxlength="<?php echo DB_FIELD_SIZE_API_TOKEN_NAME; ?>"
/>
</td>
</tr>

Expand Down

0 comments on commit dc69978

Please sign in to comment.