Browse Source

Making key fields required in config

Brendan Abolivier 8 years ago
parent
commit
8ee4190d90
1 changed files with 7 additions and 7 deletions
  1. 7
    7
      config.html

+ 7
- 7
config.html View File

28
 			<h3>Macaroons configuration</h3>
28
 			<h3>Macaroons configuration</h3>
29
 		</td>
29
 		</td>
30
 	</tr>
30
 	</tr>
31
-	<tr>
31
+	<tr class="required">
32
 		<td align="right">
32
 		<td align="right">
33
 			<label for="cookie_name">Cookie name</label>
33
 			<label for="cookie_name">Cookie name</label>
34
 		</td>
34
 		</td>
35
 		<td>
35
 		<td>
36
-			<input name="cookie_name" id="cookie_name" type="text" size="50" value="<?php echo $config->cookie_name; ?>" />
36
+			<input name="cookie_name" id="cookie_name" type="text" size="50" value="<?php echo $config->cookie_name; ?>" required="true" />
37
 		</td>
37
 		</td>
38
 		<td>Name of the cookie your macaroon is located in.</td>
38
 		<td>Name of the cookie your macaroon is located in.</td>
39
 	</tr>
39
 	</tr>
40
-	<tr>
40
+	<tr class="required">
41
 		<td align="right">
41
 		<td align="right">
42
 			<label for="secret">Secret</label>
42
 			<label for="secret">Secret</label>
43
 		</td>
43
 		</td>
46
 		</td>
46
 		</td>
47
 		<td>The secret your macaroon was signed with</td>
47
 		<td>The secret your macaroon was signed with</td>
48
 	</tr>
48
 	</tr>
49
-	<tr>
49
+	<tr class="required">
50
 		<td align="right">
50
 		<td align="right">
51
 			<label for="identifier_format">Identifier format</label>
51
 			<label for="identifier_format">Identifier format</label>
52
 		</td>
52
 		</td>
53
 		<td>
53
 		<td>
54
-			<input name="identifier_format" id="identifier_format" type="text" size="50" value="<?php echo $config->identifier_format; ?>" />
54
+			<input name="identifier_format" id="identifier_format" type="text" size="50" value="<?php echo $config->identifier_format; ?>" required="true" />
55
 		</td>
55
 		</td>
56
 		<td>Your Macaroon's identifier format. Available placeholders are {{username}}, {{firstname}}, {{lastname}}. Elements must me delimited with semicolons (";").<br />
56
 		<td>Your Macaroon's identifier format. Available placeholders are {{username}}, {{firstname}}, {{lastname}}. Elements must me delimited with semicolons (";").<br />
57
 eg: {{firstname}};{{lastname}}</td>
57
 eg: {{firstname}};{{lastname}}</td>
58
 	</tr>
58
 	</tr>
59
-	<tr>
59
+	<tr class="required">
60
 		<td align="right">
60
 		<td align="right">
61
 			<label for="email_config">E-mail template</label>
61
 			<label for="email_config">E-mail template</label>
62
 		</td>
62
 		</td>
63
 		<td>
63
 		<td>
64
-			<input name="email_config" id="email_config" type="text" size="50" value="<?php echo $config->email_config; ?>" />
64
+			<input name="email_config" id="email_config" type="text" size="50" value="<?php echo $config->email_config; ?>" required="true" />
65
 		</td>
65
 		</td>
66
 		<td>Template for emails. Available placeholders are {{firstname}} and {{lastname}}.<br />
66
 		<td>Template for emails. Available placeholders are {{firstname}} and {{lastname}}.<br />
67
 eg: {{firstname}}.{{lastname}}@company.tld</td>
67
 eg: {{firstname}}.{{lastname}}@company.tld</td>