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