Add sign-in
Give your app accounts and sign-in, decide which pages need one, and what to do if the app is already live.
Sign-up, sign-in and password resets are built into YeshBe. You don't build the login screen or store passwords — you decide whether the app has accounts, and which pages need one.
Ask for it#
Add accounts. People should be able to sign up, and the orders page should only be visible once they're signed in.The login and sign-up screens are provided by the platform, so there is nothing to design and no route to add. They follow your app's colors and logo.
Private or mixed#
Every app with accounts is one of two shapes, and picking the wrong one is the most common mistake here.
Mixed — some pages are open and some need an account. A shop with a public catalogue and a private orders page. A site with a public home page and a members' area.
Private — every page needs an account. An internal tool, a CRM, an admin dashboard. Only the landing page stays open, because a visitor has to be able to reach the sign-up form.
What a user has#
Every account comes with these, whether you ask for them or not:
| Field | |
|---|---|
| The address they sign in with | |
| Password | Stored hashed; never visible to anyone, including you |
| Full name | |
| Phone | |
| Avatar | |
| Role | See Roles and permissions |
| Active | A blocked account can't sign in |
| Created, last signed in | Set for you |
Anything else your app needs — a company, an address, a date of birth — is a field you ask for, and it appears on the sign-up form and in the Users tab.
Adding sign-in to an app that already exists#
This is allowed while the app is still an unpublished draft, and refused afterwards.
The reason is that turning on accounts changes who can see every page. On an app that is live, with people using it, that is a change that locks out real visitors between one version and the next — and there is no safe way to preview it, because the schema is shared by every version.
So the editor blocks it when any of these is true:
- The app has been published.
- Any version of it has been live.
- It already holds real records.
What to do instead. Duplicate the app, add sign-in to the copy, move the data across, and publish the copy when it behaves the way you want. The original keeps running until you switch.
Turning sign-in off#
The reverse is allowed at any time. The sign-in screens stop appearing and pages stop requiring an account.
Next#
- Roles and permissions Decide who can see and do what.
- Google, Microsoft and GitHub sign-in Let people use an account they already have.
- Managing users Who has signed up, and what to do about them.