Skip to content

Commit

Permalink
Merge pull request #16 from boscorelly/develop
Browse files Browse the repository at this point in the history
Enhance lifetime secret
  • Loading branch information
inesmv authored Mar 21, 2022
2 parents e78b418 + c194547 commit 5d353f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions inc/config.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ static function showConfigForm() {
echo "</td></tr>\n";

echo "<tr><th colspan='4'>".__('One-Time Secret')." - ".__('Lifetime','onetimesecret')."</th></tr>";

echo "<td>".__("Password lifetime", "onetimesecret")."</td><td>";

$one_day_in_sec=86400;
Expand Down
4 changes: 3 additions & 1 deletion inc/link.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ static function showForm($ID, $params=[]) {
echo "<input type='password' name='password' id='password' size='40' >";
echo "</td></tr>\n";


echo "<td>".__("Password lifetime","onetimesecret")."</td><td>";
$one_day_in_sec=86400;
$one_minute_in_sec=60;
Expand All @@ -104,6 +105,7 @@ static function showForm($ID, $params=[]) {

Dropdown::showFromArray('lifetime', $possible_values,['value' => $config->fields["lifetime"]]);


echo "</tr>";

echo "<tr><th colspan='4'>".__('Optional parameter','onetimesecret')."</th></tr>";
Expand Down Expand Up @@ -134,4 +136,4 @@ function getEmpty() {
}


}
}

0 comments on commit 5d353f6

Please sign in to comment.