Commit bfb19323 authored by Johnny Leveneur's avatar Johnny Leveneur
Browse files

changement default-user

parent 00ef79a2
Loading
Loading
Loading
Loading
+61 −5
Changes for SQL/00_requetes.sql: 61 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -142,19 +142,75 @@ FROM atelier_session s
         LEFT JOIN atelier_intervenant interv
                   ON interv.id = asi.intervenant_id
WHERE
    e.histo_destruction IS NULL
  AND ie.histo_destruction IS NULL
    --e.histo_destruction IS NULL
  --AND
    ie.histo_destruction IS NULL
  AND
    s.id = 136;
    s.id = 137;

select * from atelier_session s
join atelier_atelier a ON a.id = s.atelier_id
         where s.id=136 ;
         where s.id=137 ;

select * from unicaen_etat_instance e where e.id = 6398  ;
-- 6398,6,2026-09-10 15:27:43.000000,9,2026-10-05 08:00:01.000000,9,2026-10-05 08:00:01.000000,9,,

select * from unicaen_utilisateur_user where id = 9 ;
select * from unicaen_etat_instance e where e.id = 6390  ;
-- 6390,6,2026-09-10 10:41:49.000000,9,2026-10-05 18:00:02.000000,9,2026-10-05 18:00:02.000000,9,,
-- planification de la convocation des inscrits le 05/10/2026 à 18:00:00 traité à 18:00:02

select * from unicaen_etat_instance e where histo_destruction is not null order by histo_destruction desc  ;
-- 6577,6,2026-10-01 14:46:53.000000,9,2026-10-05 08:00:01.000000,9,2026-10-05 08:00:01.000000,9,,

select e.id etat_instance_id, ases.id session_id, a.id, a.libelle from atelier_session_etat ase
join unicaen_etat_instance e on e.id = ase.etat_instance_id
join atelier_session ases on ases.id = ase.session_id
join atelier_atelier a on a.id = ases.atelier_id
where e.id in (6577,6602,6607) ;

-- 6577,120,47,Atelier musiques actuelles

select * from unicaen_utilisateur_user where id in (9,4682,4652,4675,4664,4673,4671) ;
/*
 9,leborre221,Elisa Leborre,elisa.leborre@unicaen.fr,ldap,true,,2
4652,bouilla233,Margaux Bouillard,margaux.bouillard@etu.unicaen.fr,ldap,true,,4
4664,jouan223,Romane Jouan,romane.jouan@etu.unicaen.fr,ldap,true,,4
4671,djemaa261,Rima Djemaa,rima.djemaa@etu.unicaen.fr,ldap,true,,4
4673,lathezrere@gmail.com,Réjane Mabile Réjane Mabile,lathezrere@gmail.com,$2y$14$/3a4Xsd4Wdigtg6EQ8LauuUGOP2CGGPWLrkf9AZEKR90lJFle1e4u,true,,9
4675,steven.blais@lilo.org,Blais Steven ,steven.blais@lilo.org,$2y$14$W/9y1KM9lQrdRnFEGAc3Fuav1gbxvOV1ZVjRpW/M5xCScp7A5kQX.,true,,9
4682,nadegemarie@rhcareer.com,Marie Nadege,nadegemarie@rhcareer.com,$2y$14$bfWp4on5anftaiqghzfPPe4phY7pJPFeQsrwZ7g7lj/ntckH2/sBO,true,,9

 */

select * from unicaen_etat_type where id = 6 ;
-- 6,INSCRIPTION_FERMEE,Inscription close,2,fas fa-book,#204a87,30

-- 'default-user' => 0
select * from unicaen_utilisateur_user where id = 0 ;
select * from unicaen_utilisateur_user order by id asc;

-- créer un nouvel user par defaut depuis le user 0
INSERT INTO unicaen_utilisateur_user (
    username,
    display_name,
    email,
    password,
    state,
    password_reset_token,
    last_role_id
)
SELECT
    'Inscription SUAC CLI',
    'Inscription SUAC CLI',
    email,
    password,
    state,
    NULL,
    last_role_id
FROM unicaen_utilisateur_user
WHERE id = 0
RETURNING id;

-- id 562 pprod, 4683 en prod

select * from unicaen_utilisateur_user where id = 4683 ;
 No newline at end of file
+1 −1
Changes for config/autoload/unicaen-utilisateur.global.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ return [
//            IdentityProvider::class,
        ],
        'application-username' => 'inscription_suac',
        'default-user' => 0,
        'default-user' => 4683,
        'display-user-info' => false,
    ],