iMokhles / IMRepo_ARCHIVE

best cydia repo manager ever
15 stars 7 forks source link

[Suggestion] For Registration and Login #2

Open andrewwiik opened 7 years ago

andrewwiik commented 7 years ago

I would strongly advise against letting Users create their own email and pass, I would highly recommend you force users to use a third party sign on like Google, Twitter, Github, and Weibo, this prevents repo managers get frustrated by users who have forgotten the password to their own account.

I also suggest not using only Google as the only OAuth option as Google is heavily blocked in some places in China, which is where a option like Weibo would come in handy, I know PassportJS exists for node apps and has strategies for tons of third parties but I am unaware of any for Larval.

For the configuration UI of OAuth give the repo admin a instructions page on how to generate the clientID and secret key for each OAuth service and also what to put for the callback url field, then have a place in the settings page where they put the generated clientID and Secret key for OAuth Service

Also as for gifting allow the user to create a username, that is no way linked with logging in, but can be used like a "CydiaID" to gift packages to.

iMokhles commented 7 years ago

nice that's why i put registration in the ToDo list because i need a simple way to do it well actually for the username ( to be like Cydia Id ) nice idea rather than username ( we can make an unique id like cydia does )

also the repo is open for pull requests :)

andrewwiik commented 7 years ago

I haven't used Larvel a ton hence why I am writing my manager in Angular2 and Node.js backend, and I would suggest using a username instead of unique id as usernames are easy to remember