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

🐛 Bug Report: logged-in user shouldn't login again #85

Open
2 tasks done
Ananya2001-an opened this issue Jul 1, 2023 · 0 comments
Open
2 tasks done

🐛 Bug Report: logged-in user shouldn't login again #85

Ananya2001-an opened this issue Jul 1, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Ananya2001-an
Copy link

👟 Reproduction steps

Currently, logged-in users can use the login command to login again which shouldn't be the case as we have a logout command as well. It will serve no purpose otherwise...so a solution would be to check if there are any current logged in users before we can login again. I think the account get command would serve that purpose but when I run it, it raises an error saying that the appwrite project is not instantiated with init but ig that's a bit confusing since when we are logging in we are connecting to maybe the cloud api endpoint and now I want to get the details of the current logged-in user for that....it has no link with a local appwrite project....

I would love to work on this...tho I would need some more insights into the issue :)

👍 Expected behavior

Should not allow user to login again before logout...

👎 Actual Behavior

Allowing us to do the opposite

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

Windows

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@Ananya2001-an Ananya2001-an added the bug Something isn't working label Jul 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant