View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
15828Bug reportsDocumentationpublic2020-02-06 14:22
ReporterDenisChenu Assigned To 
PrioritynormalSeverityminor 
Status newResolutionopen 
Product Version4.1.1 
Summary15828: No documentation for createNewUser
Description

There are no manual, no information for createNewUser event
https://manual.limesurvey.org/index.php?title=CreateNewUser&action=edit&redlink=1

Steps To Reproduce

Additional Information

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)4.1.1 github
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2020-02-06 09:55

developer   ~55778

Where is the event

https://github.com/LimeSurvey/LimeSurvey/blob/2141c44d33ae145d7ab602f1818a15c40fc483b1/application/controllers/admin/useraction.php#L120-L124
https://github.com/LimeSurvey/LimeSurvey/blob/2141c44d33ae145d7ab602f1818a15c40fc483b1/application/controllers/admin/UserManagement.php#L1134-L1140

DenisChenu

DenisChenu

2020-02-06 09:56

developer   ~55779

Added
https://github.com/LimeSurvey/LimeSurvey/commit/953f970448f4ee5fa87ed81a3f6dfcb9738bf5e7

ollehar

ollehar

2020-02-06 14:09

administrator   ~55791

:(

ollehar

ollehar

2020-02-06 14:13

administrator   ~55792

I don't understand these lines:

        $event->set('errorCode', AuthPluginBase::ERROR_NOT_ADDED);
        $event->set('errorMessageTitle', gT("Failed to add user"));
        $event->set('errorMessageBody', gT("Plugin is not active"));

Why are they part of event data? oO

DenisChenu

DenisChenu

2020-02-06 14:22

developer   ~55794

I think it was default set, updated by plugins after ? Unsure ?

Seems only https://github.com/LimeSurvey/LimeSurvey/blob/2141c44d33ae145d7ab602f1818a15c40fc483b1/application/controllers/admin/UserManagement.php#L1134-L1140 happen on 4.X

Issue History

Date Modified Username Field Change
2020-02-06 09:52 DenisChenu New Issue
2020-02-06 09:55 DenisChenu Note Added: 55778
2020-02-06 09:56 DenisChenu Note Added: 55779
2020-02-06 14:09 ollehar Note Added: 55791
2020-02-06 14:13 ollehar Note Added: 55792
2020-02-06 14:15 ollehar Priority none => normal
2020-02-06 14:22 DenisChenu Note Added: 55794