Skip to main content

Logging in by text message

A member with a confirmed phone number can log in with a code texted to it, without a password. On the login form they press Log in with a text message instead, type their number and press Text me a code. The code has six digits, and typing it logs them in.

The login form with the phone way open: Phone number with a British number typed, Text me a code, Log in with a password instead, Email me a code instead and the buttons of the five providers
Logging in by text message
After Text me a code: the number, If that number has an account here, a code is on its way, six boxes for the code, Keep me logged in, Log in, and Send a new code, or use another number
Typing the code

What it needs​

  • A texting service, set up under Settings → Services → Text messages (SMS), with the countries you text.
  • Phone numbers for members: under Settings → Joining → Signing up, Phone number is Optional or Required, not Off.
  • The way switched on: A code by text message under Settings → Joining → Logging in. It's on by default as soon as texts are set up, and the row says what is missing while it can't run.

Each code is a text you pay for, and it counts toward the Texts a month you allow under Text messages.

Which numbers get a code​

A member adds their number under Edit profile → Account, in the Phone number card, and confirms it with a code texted to it. A member who signed up with their number confirmed it then. Only a confirmed number gets a login code: anyone can type a number, so a number nobody confirmed belongs to no one.

A confirmed number also works with the password. The first field of the login form takes it in place of a username or an email address.

What guards it​

  • The form answers the same for every number, whether a member has it or not, so nobody can use it to find out who is a member.
  • A code lasts 30 minutes and takes five tries. A new one can be asked for after a minute, and it replaces the one before.
  • A number gets one text a minute at most, and a network address can ask only so many codes an hour.
  • The captcha you set for logging in protects this form too.

Forgot password by text​

With this way on, the Forgot password form offers No email address? Use your phone number. A code texted to a confirmed number opens the page to choose a new password, in the browser that asked for it and no other. The code never logs the member in by itself. A site that emails no member offers it whenever members have phone numbers, as no reset email can reach them there.