Le mirroring des dépôts vers Github est maintenant natif dans Gitlab (et donc Framagit). Merci de passer à la fonction native pour que nous puissions couper notre solution maison. Détails sur https://docs.gitlab.com/ee/workflow/repository_mirroring.html#pushing-to-a-remote-repository (pensez à supprimer le webhook de notre solution maison).

README.md 1.32 KB
Newer Older
1
# ResetPasswordController
Denis Chenu committed
2

Denis Chenu committed
3
Reset easily username and password of initial super admin with only FTP access.
Denis Chenu committed
4

5
## Installation and usage
Denis Chenu committed
6 7 8

Put this file in `./application/controllers/` directory of your limesurvey installation.

Denis Chenu committed
9
Update your `./application/config/config.php` file to add `resetusername` and `resetpassword` in the config array.
Denis Chenu committed
10

11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

        'config'=>array(
        // debug: Set this to 1 if you are looking for errors. If you still get no errors after enabling this
        // then please check your error-logs - either in your hosting provider admin panel or in some /logs directory
        // on your webspace.
        // LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates
            'debug'=>2,
            'debugsql'=>0, // Set this to 1 to enanble sql logging, only active when debug = 2
            // Update default LimeSurvey config here
            'resetusername'=>'The new user name (login)',
            'resetpassword'=>'The new password',
        )


Go to ResetPassword controller via your browser : can be `example.org/index.php/ResetPassword` or `example.org/index.php?r=ResetPassword`.
If no error are shown you can log in with the new user name and the new password.

Denis Chenu committed
28
**Remind to remove this file or the config part after reset are done.**