corrige le code de classe (caractères ambigus) et fige l'image Uptime Kuma par digest
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
97c04f1ad6
commit
f899aac48a
11 changed files with 92 additions and 15 deletions
|
|
@ -4,6 +4,7 @@ namespace App\Services;
|
|||
|
||||
use App\Models\Classe;
|
||||
use App\Models\Eleve;
|
||||
use App\Support\CodeLisible;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
|
|
@ -13,9 +14,6 @@ use Illuminate\Support\Str;
|
|||
*/
|
||||
class GenerateurCompteEleve
|
||||
{
|
||||
// Sans 0/O ni 1/I/L, pour qu'un élève ne confonde pas à la lecture.
|
||||
private const ALPHABET_CODE = 'ABCDEFGHJKMNPQRSTUVWXYZ23456789';
|
||||
|
||||
public function genererIdentifiant(string $prenom, ?string $nom): string
|
||||
{
|
||||
$base = Str::slug($prenom, '');
|
||||
|
|
@ -35,12 +33,7 @@ class GenerateurCompteEleve
|
|||
|
||||
public function genererCodeSecret(): string
|
||||
{
|
||||
$code = '';
|
||||
for ($i = 0; $i < 6; $i++) {
|
||||
$code .= self::ALPHABET_CODE[random_int(0, strlen(self::ALPHABET_CODE) - 1)];
|
||||
}
|
||||
|
||||
return $code;
|
||||
return CodeLisible::genere(6);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue