dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #29008
Re: User logged out when creating from API
Hi there,
the account resource is a bit different from the user resource. The main
use-case for the account controller is the self-registration process where
people create their own accounts and then automatically proceed to log in.
What you see is in other words intentional behavior.
In 2.15 which is out in a week or two we will support creation of users
through the user resource. We plan to add this totrunk in a few days. This
will allow you to create new users without changing the current
credentials.
best regards,
Lars
On Tue, Apr 1, 2014 at 1:37 PM, Kiran Prakash <kprakash@xxxxxxxxxxxxxxxx>wrote:
> Hello Lars,
>
> It would be nice to hear from you on this issue. A couple of our design
> choices are dependent on this. For Eg. We might have to fork dhis2 and
> write our own module for user creation if there's no way to create a user
> using the account API without logging out the admin user.
>
> A quick Skype call to discuss this would be really helpful. Let me know
> when I can reach out to you.
>
> Thanks in advance,
>
> Kiran.
>
>
> On Sat, Mar 29, 2014 at 8:44 PM, Mahendra Kariya <
> mahendrk@xxxxxxxxxxxxxxxx> wrote:
>
>> Hi,
>>
>> I am still wondering if there is any way to continue the user session of
>> the creator when a new user is being created using API.
>>
>>
>> On Thu, Mar 27, 2014 at 4:07 PM, Mahendra Kariya <
>> mahendrk@xxxxxxxxxxxxxxxx> wrote:
>>
>>> Hi,
>>>
>>> We are trying to create a new user using DHIS (2.14 release) api/account
>>> API. The user is getting created successfully. But the creator user is
>>> getting logged out and the new user created is getting logged in. We want
>>> to the creator's session to continue. Is there any way to do it?
>>>
>>>
>>> Thanks!
>>>
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help : https://help.launchpad.net/ListHelp
>>
>>
>
Follow ups
References