Page 1 of 1

How to return extra column in logonservice to identify Admin usertype

Posted: Mon Aug 25, 2014 11:40 am
by Doo Dad

Hi

I am using the default loginservice provided by Appery and I would like to get an extra column from the users collection to be returned as part of the response. The extra column would be a Boolean Admin .. to identify extra rights for the user.

How can I accomplish this without creating a new service ?

Thanks
DD


How to return extra column in logonservice to identify Admin usertype

Posted: Tue Aug 26, 2014 1:05 am
by Alena Prykhodko

Hello,

You can modify imported Service, add required Response fields manually.
http://devcenter.appery.io/documentat...


How to return extra column in logonservice to identify Admin usertype

Posted: Tue Aug 26, 2014 12:27 pm
by Doo Dad

So .....
The link you provided does not discuss anything about importing an existing service

Can you explain how to import an existing service ?

Specifically the loginservice ?

Thanks
DD


How to return extra column in logonservice to identify Admin usertype

Posted: Tue Aug 26, 2014 12:32 pm
by Doo Dad

Hangon ... before you tell me how to import a service in the project designer ...
which I already know of course ...

I would really like to know how to import a service, such as the loginservice in the Users collection and subsequently modify it to handle an extra column the the Users collection ....

Thanks again


How to return extra column in logonservice to identify Admin usertype

Posted: Tue Aug 26, 2014 11:20 pm
by Yurii Orishchuk

Hi Doo,

Please follow these steps:

1 Click "Create New" and select "Database services". http://prntscr.com/4gt3sy/direct

2 Select DB and select "signIn" service. http://prntscr.com/4gt4l8/direct

3 Then when import will done, open this service.

4 Navigate to "Request" tab.

5 Add custom request parameter that you need. http://prntscr.com/4gt5h2/direct

That's all.

Regards.