advplyr / audiobookshelf

Self-hosted audiobook and podcast server
https://audiobookshelf.org
GNU General Public License v3.0
6.24k stars 437 forks source link

[Enhancement]: Public user registration and invite links #1084

Open brandonhowlett opened 1 year ago

brandonhowlett commented 1 year ago

Describe the feature/enhancement

For folks securely reverse proxying audiobookshelf, where a login has already been required, including public (self) registration would be preferable.

For example, Calibre-web has a landing page with login and registration links (if public registration is enabled). Configuration settings include: "Enable Public Registration" and "Use E-Mail as Username."

login register

advplyr commented 1 year ago

How is it getting your SMTP info for sending emails?

brandonhowlett commented 1 year ago

It's supplied by the admin in the config.

Link to devs setup guide: https://github.com/janeczku/calibre-web/wiki/Setup-Mailserver

email_config

DDriggs00 commented 1 year ago

Sending invite emails would be another very useful feature adjacent to this.

advplyr commented 1 year ago

This will be possible now that email settings have been added. As of v2.2.22 the email settings are only used for sending ebooks to devices.

Sending invite emails was requested in #686 and I combined that request with this one since they can be built at the same time.

Unbeaten4350 commented 1 year ago

This would be a great enhancement to Audiobookshelf. Example usage: Setting up accounts for my friends in our book club.

Kavita has a setup for this: https://wiki.kavitareader.com/en/guides/misc/email

Investigamer commented 3 weeks ago

I definitely agree with the invite link proposal. Ideally, at the very least there would be (correct me if this already exists) an authenticated API endpoint that can generate an invite link with an attached single-use token to allow a user to register to your audiobookshelf instance (with other parameters like invite token expiration date, account lifespan for temporary guests, etc). With such an endpoint, third party apps like an authenticated discord bot could handle features like generating temporary invites upon request, generating permanent invites for family and friends, etc. Definitely preferably to "here, I made you an account and these are the credentials in plain text".