mirror of https://github.com/MISP/MISP
chg: add spaces before opening curly brackets
parent
30fb4e2b2e
commit
1c641b809e
|
@ -930,7 +930,7 @@ class User extends AppModel {
|
|||
);
|
||||
$orgs = $this->find('all', $params);
|
||||
$usersPerOrg = [];
|
||||
foreach ($orgs as $key => $value){
|
||||
foreach ($orgs as $key => $value) {
|
||||
$usersPerOrg[$value['User']['org_id']] = $value[0]['num_members'];
|
||||
}
|
||||
return $usersPerOrg;
|
||||
|
|
|
@ -58,7 +58,7 @@ class ApacheShibbAuthenticate extends BaseAuthenticate {
|
|||
{
|
||||
|
||||
//If the url contains sso=disable we return false so the main misp authentication form is used to log in
|
||||
if(array_key_exists('sso', $request->query) && $request->query['sso'] == 'disable' || $_SESSION["sso_disable"] === True){
|
||||
if(array_key_exists('sso', $request->query) && $request->query['sso'] == 'disable' || $_SESSION["sso_disable"] === True) {
|
||||
$_SESSION["sso_disable"]=True;
|
||||
return false;
|
||||
}
|
||||
|
@ -126,11 +126,11 @@ class ApacheShibbAuthenticate extends BaseAuthenticate {
|
|||
);
|
||||
}
|
||||
|
||||
private function randPasswordGen($len){
|
||||
private function randPasswordGen($len) {
|
||||
$result = "";
|
||||
$chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\$_?!-0123456789";
|
||||
$charArray = str_split($chars);
|
||||
for($i = 0; $i < $len; $i++){
|
||||
for($i = 0; $i < $len; $i++) {
|
||||
$randItem = array_rand($charArray);
|
||||
$result .= "".$charArray[$randItem];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue