Delete expires ots & add duration to create
CI/CD / test_and_check_app (push) Failing after 53s
CI/CD / Publish immutable image (push) Skipped

This commit is contained in:
2026-10-13 09:56:53 +02:00
parent 8fadceabed
commit ec93510f4b
7 changed files with 106 additions and 24 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace App\Enums;
enum OneTimeSecretDuration: int
{
case ThirtyMinutes = 1800;
case OneHour = 3600;
case SixHours = 21_600;
case OneDay = 86_400;
case ThreeDays = 259_200;
case OneWeek = 604_800;
public function label(): string
{
return match ($this) {
self::ThirtyMinutes => '30 Minutes',
self::OneHour => '1 Hour',
self::SixHours => '6 Hours',
self::OneDay => '1 Day',
self::ThreeDays => '3 Days',
self::OneWeek => '1 Week',
};
}
}