Skip to content
Farin Theme Guide
GuidesUsers

Login Page

The page a logged-out shopper sees on WooCommerce’s “My Account”. Farin gives it a new look and adds two Iranian features: logging in with a mobile number instead of a username, and signing up with a mobile number without an email. If you want, login with an SMS code is also turned on from this same tab.

Where is it? Farin → Site content → Users → Login Page

Below this page is the same WooCommerce login and sign-up; CAPTCHAs and plugins that work with the WooCommerce form work here too.

Preview

The welcome column's text and features appear only in the “Showcase and form” layout, and “Mobile image” only in “Half image” and “Full-screen image”. Options that do nothing in the selected layout are hidden.

The “Half image” model puts a full-height photo on the right half of the page and a simple form on the left half, with the logo placed on the photo. Use a portrait 1000×1400 photo for it. You can change the photo's side (right or left), showing the logo on the photo and showing the photo on mobile right there. By default, phones get no photo.

The top of the page is a preview of the login page. Use “Login” and “Sign up” to see the two forms, and “Desktop” and “Mobile” to change the size. Changes appear right there.

The login and sign-up page box with the on switch, the two layouts (showcase and form, and login and sign-up tabs), the sign-up switch, and the no header and footer switch
Turn the page on, choose a layout, and open or close sign-up.

Login and sign-up page

OptionWhat it doesDefault
Turn on the Farin login pageWhen off, the plain WooCommerce form is shown.On
Layout“Showcase and form”: the store's image and features beside the login card. Showcase and form
Login and sign-up tabsA separate switch that works in all layouts: two tabs, “Login” and “Sign up”, above the form. When off, sign-up is a link under the form. It shows only when sign-up is open.Off
Sign-up is openA new buyer creates an account with a mobile number or email and a password. This is the same switch as “Allow customers to create an account on the My account page” in WooCommerce settings; changing either one changes the other.On
Login page without the site header and footerThe page shows only the form so the buyer stays focused. A “Back to site” link sits above the form.On

The “View page (in an incognito window, logged out)” button opens the account page. Since you are logged in, you will see your own panel there; to see the login form, open the address in your browser’s incognito window.

An account page is requiredIf the WooCommerce “My account” page is not published, a warning appears instead of this button. Under “WooCommerce → Settings → Advanced”, assign a page for the account.

Login and sign-up with a mobile number

  • Sign-up: In the sign-up box you can enter either a mobile number or an email. With a mobile number, the number becomes the account username and no email is needed. The Farin form always asks for a password.
  • Login: A mobile number in the username box works like a username. A number typed in Persian digits, with spaces, or with +98 is accepted too.
Login with a number is safeA number the buyer typed only in the checkout form does not give anyone access to their account. Login with a number works only for an account whose username is that number or that was verified with an SMS code.
The welcome column box with the heading, line under the logo, text, three feature rows, image slot, and palettes
The welcome column beside the form: text, features, image, and colors.

Welcome column

This column sits beside the form and is hidden on mobile. Wherever you write {site} the site name appears in its place in the main color.

OptionWhat it doesDefault
Show the welcome columnTurns the column on or off.On
TitleThe column’s large heading, up to 80 characters.Welcome to {site}
Line under the logoOne short sentence about the store.Online store for digital products and accessories
TextText under the heading, up to 200 characters.With one account, get access to the world of digital products.
AttributesUp to four rows, each with an icon (shield, truck, lightning, headset, lock, gift, return, card, star, verified badge) and a title. Use the arrows to reorder and ✕ to remove a row.Secure and fast payment, fast delivery nationwide, guaranteed authentic goods
ImageColumn image; the recommended size is 800 × 600, as a PNG with a transparent background. Without an image, a shopping bag, phone, and watch are drawn in the main color.Empty
Main colorButton and site name color.#7B2CBF
Column background (start)The color the column background starts with.#F5EFFC
Column background (end)The color the background fades into.#FFFFFF

The eight “ready-made palettes” set all three colors together.

Change the default textThe default “Line under the logo” and “Text” talk about digital products. If your store sells something else, replace them with your own wording.
The form text box with the login and sign-up heading and text, the names of the two buttons, and three rows for the bar under the card
The text of the login and sign-up forms and the small bar under the card.

Form texts

OptionWhat it doesDefault
Login headingHeading of the login form.Log in to your account
Login buttonText of the login button, up to 30 characters.Login
Text under the login headingA guiding sentence under the heading.To continue, enter your mobile number or email.
Sign-up headingHeading of the sign-up form.Create an account
Text under the sign-up headingA guiding sentence under the sign-up heading.Join in under a minute with a mobile number or email.
Sign-up buttonText of the sign-up button.Sign up
Bar under the cardUp to three rows of icons and text under the form card. Leave it empty and the bar is not shown.Your information is safe, 24-hour support, a trustworthy purchase
The SMS code login card with the on switch and three buyer login methods
Login with an SMS code and the buyers’ login method.

Login with an SMS code

The buyer enters their number, a code is sent to them by SMS, and they log in with it. If they have no account, one is created for them right there. Store admins always log in with a password through the WordPress login.

This section is visible only to someone who has access to the Authentication section.

  1. Set up the SMS panel. In SMS Panel set up the service and its keys, and under “Messages” write the template code for “One-time login code”. Until this is done, a warning appears at the top of this card and code login does not work.
  2. Know the captcha. to Captcha When off, Farin itself adds an “I'm not a robot” check with ALTCHA for “Send one-time code”. If you have turned the captcha on, don't turn off the “Send one-time code” spot.
  3. Turn on “Enable login with code” and choose the login method.
OptionWhat it doesDefault
Enable login with codeOpens SMS-code login to buyers.Off
Buyer login method“SMS code only”: the password and sign-up forms are not shown. “SMS code, with password beside it”: the code comes first and “Log in with password” sits below it. “Password only”: as before, no code is sent.SMS code, with password beside it

While code login is on, sign-up with a mobile number and password is closed so every mobile account is created with a code. Accounts previously created with a mobile number and password log in with their own password. If the owner of such an account logs in with a code, a new account is created for that number, because that number has never been verified with a code.

Getting a code always requires “I'm not a robot”Each code is one SMS, and the store pays for it. So when the captcha is off, Farin itself adds ALTCHA for “Send one-time code”: it is measured on this site itself, needs no key and connects to no external service. If you have turned the captcha on and turn off the “Send one-time code” spot, this warning appears at the top of the card.
The code and limits box with the number of code digits, code validity, resend interval, attempts per code, codes per number, window, number lockout, and staying logged in
The code length and the limits that prevent SMS abuse.

Code and limits

Every SMS costs money; these numbers prevent abuse. A number outside the allowed range is moved to the nearest edge of that range; for example, 4 for the number of code digits is saved as 6.

OptionWhat it doesDefault
Number of code digitsCode length, from 6 to 8 digits.6
Code validityHow many seconds after sending the code works; from 60 to 900.120 seconds
Resend intervalHow long the buyer must wait before requesting a new code; from 30 to 600 seconds.60 seconds
Attempts per codeHow many times a wrong code can be entered; from 3 to 10.5
Codes per numberHow many codes one device can request for one number within the “window”; beyond that, the same device is blocked for that number. The owner of the number is not blocked on their own device, so no one can block another person's login with repeated requests. Across all devices together, no more than three times this number of codes are sent for one number until the window ends. From 1 to 20.5
WindowThe window for counting codes; from 10 to 1440 minutes.60 minutes
Number lockoutHow long a device that has exceeded the limit for a number cannot get codes for that number; from 5 to 1440 minutes.30 minutes
Staying logged inHow many days the buyer stays logged in after a code login; from 1 to 365.30 days

The code SMS text is under “SMS panel → Messages”, named “One-time login code”.

Frequently Asked Questions

The buyer signed up with a number and has no email. What happens to order emails?

The account is created without a real email, so no email reaches them. To notify such a buyer, turn on the order SMS messages in SMS Panel .

If I turn on “SMS code only”, how do I log in to the dashboard myself?

As always, from the WordPress login page with your username and password. Code login is only for buyers.

I don’t want anyone to sign up. What should I do?

Turn off “Sign-up is open”. The sign-up form and its link are removed from the page and only login remains.

Farin Theme · 1405