Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User management via App #150

Open
abhith opened this issue Aug 16, 2021 · 9 comments
Open

User management via App #150

abhith opened this issue Aug 16, 2021 · 9 comments
Labels
kind/feature New feature that does not currently exist

Comments

@abhith
Copy link
Member

abhith commented Aug 16, 2021

#146 (comment)

@abhith abhith added the kind/feature New feature that does not currently exist label Aug 16, 2021
@bill0alt
Copy link

Hey I am not sure, but when I create a new user or a new tenant on the angular admin panel. The app does not recognize it for some reason.

Is there a specific way users should be added?

Because on the api page it does work when I leave the tenancy empty.

I changed the api url on the following files: "piggy_api_client.dart", "rest_client.dart"

@abhith
Copy link
Member Author

abhith commented Aug 21, 2021

It should work. You can check the API logs to see what's wrong. To see the logs, uncomment the three lines here (127-129) and comment out 131-132, which will enable logging to file system (log file path mentioned here).

@bill0alt
Copy link

What do you enter in the family field on the app? Do you leave it blank?

@bill0alt
Copy link

It does work on the angular application! It's on the app that it does not work

@abhith
Copy link
Member Author

abhith commented Aug 21, 2021

Family = Tenant name.

Leaving it blank will result in login to the host account in abp terms (the account that manages all tenants).

In piggy, host account have no special purpose yet. Only relying on tenant accounts.

Initial db setup includes setting up a host account and default Tenant account. Default tenant credentials can be found in the readme.

@bill0alt
Copy link

Okay so how can I link a new account to a tenant?

Because for now the only way I can login on the api (when I click on the green Authorize button) is if I leave the tenancy empty

@bill0alt
Copy link

And when I try to add my api the currencies do work anymore. Do you have an idea. The only different thing is I do not have https. Do you think it might be linked to that?

@abhith
Copy link
Member Author

abhith commented Aug 22, 2021

Regarding tenant/user management, go through the new doc here and see if that helps.

@abhith
Copy link
Member Author

abhith commented Aug 22, 2021

Regarding currencies,

  • Check whether currencies seeded properly during initial db setup. You can do this by checking the data on the database table.

  • Check backend logs.

@bill0alt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature that does not currently exist
Projects
None yet
Development

No branches or pull requests

2 participants