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

Add endpoint/method for getting data requirements for account creation & login #4

Open
bczsalba opened this issue Jul 4, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@bczsalba
Copy link
Member

bczsalba commented Jul 4, 2021

Most websites and apps show the criteria usernames & passwords on the account creation screen, which is a really useful set of information to have.

This could be communicated through a json sent by the server:

{
    "password_length": 10,
    "characters": {
        "numeric": True,
        "uppercase": False,
        "lowercase": True,
        "special": False,
    }
}

This can then be parsed by the client, and be displayed in a nice way. These values could be control with the right permissions.

Another advantage of this system would be that it would let some methods reject data before it's even submitted to the server, allowing for much quicker use in general.

@bczsalba bczsalba added the enhancement New feature or request label Jul 4, 2021
@svmorris
Copy link
Member

svmorris commented Jul 5, 2021

Yes this makes a lot of sense.
I'm thinking that when the method for getting general information about a chatroom is done, It could return this sort of information if the client is not logged in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants