Skip to content

Commit 639cf73

Browse files
authored
Merge pull request #535 from dbarzin/dev
Dev
2 parents f61223d + 98d7c5f commit 639cf73

File tree

3 files changed

+6
-16
lines changed

3 files changed

+6
-16
lines changed

INSTALL.fr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ ajouter cette ligne dans le crontab
455455

456456
## Mise à jour
457457

458-
Pour mettre à jour Deming, il faut aller dans le répoertoire de Deming et récupérer les sources
458+
Pour mettre à jour Deming, il faut aller dans le répertoire de Deming et récupérer les sources
459459

460460
cd /var/www/deming
461461
git pull

INSTALL.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,9 @@ LDAP_TIMEOUT=5 # (optional)
323323
LDAP_LOGIN_ATTRIBUTES=uid,cn,mail,sAMAccountName,userPrincipalName
324324
```
325325

326+
# User must be member of this LDAP group
327+
LDAP_GROUP=Mercator
328+
326329
**Examples**
327330

328331
* OpenLDAP (typical user DN: `uid=jdupont,ou=people,dc=example,dc=org`):
@@ -331,6 +334,7 @@ LDAP_LOGIN_ATTRIBUTES=uid,cn,mail,sAMAccountName,userPrincipalName
331334
LDAP_TLS=true
332335
LDAP_SSL=false
333336
LDAP_LOGIN_ATTRIBUTES=uid,cn,mail
337+
LDAP_GROUP=Merator
334338
```
335339

336340
* Active Directory (UPN: `jdupont@example.org`, sAM: `jdupont`):

app/Http/Controllers/Auth/LoginController.php

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,15 @@ class LoginController extends Controller
1818
use AuthenticatesUsers;
1919

2020
protected string $redirectTo = '/home';
21-
protected string $username;
2221

2322
public function __construct()
2423
{
2524
$this->middleware('guest')->except('logout');
26-
$this->username = $this->findUsername();
27-
}
28-
29-
/**
30-
* N'utiliser QUE le champ 'login' comme identifiant.
31-
*/
32-
public function findUsername(): string
33-
{
34-
$login = trim((string) request()->input('login', ''));
35-
// On merge pour que credentials($request) prenne bien 'login'
36-
request()->merge(['login' => $login]);
37-
38-
return 'login';
3925
}
4026

4127
public function username(): string
4228
{
43-
return $this->username;
29+
return 'login';
4430
}
4531

4632
/**

0 commit comments

Comments
 (0)