Optional username for email/password auth #2425
-
If I use the Email/Password auth method for a collection, it still requires The inverse is also true, if I use an auth method of Username/Password, It would be great if the only required fields were the ones used in the selected auth method. If you wanted an app with both username and email, you could set both Email/Password and Username/Password methods for that collection. I assume both of these fields are required for PocketBase internals in some way? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There are plans in the future to change the system The But still I haven't thought much on it yet, it is just a note in my never ending todo, so the above may change once I start working on it. Eventually it will be handled together with the email change flow refactoring but there are no ETAs yet. I'll try to publish some more details in the near future, but as of now the current priorities (alongside Presentator) are:
|
Beta Was this translation helpful? Give feedback.
There are plans in the future to change the system
username
field to a regular uniquetext
field that users will be able to control (eg. specify their own min/max length and pattern or just remove it if they don't need it). The general idea is from the collection settings to allow user to choose the unique fields they want to use asidentity
for the password auth.The
email
field on the other hand is a little more complicated and cannot be easily removed from the collection because other app components may depend on it even if the app doesn't have email/pass auth enabled (eg. transactional emails, OAuth2 linking, etc.).But still I haven't thought much on it yet, it is just a note in my n…