Helpful information ...

Moxy Web - Implement two-factor login in CMS for administrators in four steps
31.08.2026

Implement two-factor login in CMS for administrators in four steps

Practical: Implement two-factor authentication in your CMS in four steps. Choose TOTP or FIDO2, set up security hardening, and prepare a secure process for...

Set Up Two-Factor Authentication for CMS Admins in Four Steps

Two-factor authentication for CMS admin accounts is mandatory, or at the very least strongly recommended, since a password alone isn't enough anymore. For most business websites, we recommend a TOTP app (Google Authenticator, Microsoft Authenticator), and for critical admin accounts, a physical FIDO2 security key. Leave SMS verification as a last resort. Below you'll find the exact steps to enable it, a comparison of methods, and a safe process for recovering access.


In short:

  • Using two-factor authentication is mandatory for admin accounts, and a physical FIDO2 key is recommended for critical access.
  • Before configuring anything, it's essential to update the CMS first, create backups, and test the configuration in a staging environment.
  • For most users, a TOTP app is the best fit, while a security key is the most resistant to phishing and interception attacks.
  • Maintaining a secure configuration includes disabling file editing, keeping everything updated, and restricting access by IP for added security.
  • If access is lost, backup codes need to be stored safely, and a clear identity verification and 2FA reset procedure needs to be in place.

Table of Contents

How to Enable Two-Factor Authentication in a CMS

Before you start configuring anything, back up the entire site, including the database. Update the CMS core, all themes, and all plugins to their latest versions. Implementing 2FA only makes sense once the system is updated and safely backed up, so that a configuration mistake doesn't put the whole site at risk.

For WordPress, almost always go with a plugin rather than custom code. In the official WordPress.org repository, you'll find several well-maintained solutions tagged "2fa." When choosing one, pay attention to the last update date, the number of active installs, and how responsive the developers are to security reports.

The setup process runs in four steps:

  1. Choose a plugin and install it in a test or staging environment, not directly in production.
  2. Generate a secret key for each user account and link it to an authenticator app via QR code or manual code entry.
  3. Create and save backup codes for every account before 2FA becomes mandatory, since without them, losing your phone means being completely locked out.
  4. Make 2FA mandatory for all administrator roles, and include editorial accounts based on your risk assessment.

Before rolling the plugin out to every user, test logging in with at least two different devices, such as a phone and a tablet. Also check what happens if a user enters the wrong code three times in a row, and whether the system logs that event. Only move the configuration to production once testing has succeeded in the staging environment.

Expert tip: Always leave one admin account without mandatory 2FA on separately, securely stored hosting for emergencies, until you have a reliable recovery process in place. Use this account exclusively for resolving lockouts, never for everyday work.

TOTP, SMS, or a Security Key: Which Method Is Right?

Choosing a method isn't a matter of taste — it's a balance between risk and practicality. Each of the three main methods fits a different usage scenario.

  • TOTP apps (Google Authenticator, Microsoft Authenticator, Authy) generate a code valid for 30 seconds and work without an internet connection on the phone. They're free, easy to roll out, and secure enough for the vast majority of admin and editorial accounts.
  • SMS verification is the fastest to implement, but also the most vulnerable. SIM-swap attacks and message interception are real threats, and official EU recommendations explicitly advise using a mobile app or a security key instead of SMS codes, which don't work reliably in some countries.
  • Security keys (YubiKey and similar FIDO2-standard devices) offer the highest level of protection, since a physical device can't be intercepted remotely or phished through a fake login page.

Official European recommendations for second factors confirm that physical keys offer a clear security advantage over SMS, especially for protection against phishing.

When deciding, consider three criteria: how sensitive the site's data is, how many administrators have access, and whether your team is willing to adopt additional hardware. An online store handling customers' personal data and payment information needs a security key for the main admin account, while a blog with five editors can safely rely on TOTP.

TOTP, SMS, or a security key: which method is right — overview diagram

Hardening a CMS When Implementing 2FA

Two-factor authentication doesn't fix vulnerabilities that bypass the login screen entirely. If an attacker gets access to the file system through a vulnerable plugin, 2FA on the login form does nothing to help.

In the wp-config.php file, set DISALLOW_FILE_EDIT to true, which disables file editing through the admin interface. Make sure you have unique security keys (salts) in the same file, and turn off WP_DEBUG on the production server, since it exposes traces of errors an attacker can easily exploit. Properly configuring this file is the foundation on which it actually makes sense to build 2FA.

Additionally:

  • Set file permissions to 644 for files and 755 for folders, and add extra protection for wp-config.php through server-level rules.
  • Restrict access to /wp-admin/ by IP address, or with an additional password at the server level where feasible.
  • Regularly update the core, themes, and plugins, and use a web application firewall (WAF) at the hosting level.
  • Log failed logins and automatically block IP addresses after a few consecutive wrong attempts.

General guidelines for WordPress site security confirm that updates, access control, and 2FA work as a whole, not as standalone measures. Because WordPress is one of the most widely used website-building platforms, it's also a frequent target of automated attacks, which is exactly why additional hardening makes sense for every business site.

Expert tip: A 2FA plugin needs maintenance of its own. Include it in your regular update schedule, since an outdated plugin can become the very vulnerability an attacker uses to bypass the protection it was supposed to provide.

What to Do If an Administrator Loses Access

Losing a phone or a hardware key shouldn't mean losing access to the entire site. Backup codes, saved by the user when 2FA is first activated, are the first line of defense. Store them encrypted, for example in a password manager, never in a plain text document on the desktop.

When backup codes are no longer available, follow a clear internal procedure:

  1. Verify the identity of the person requesting the reset through a channel other than email or a call to a known phone number.
  2. Require double confirmation, for example through the hosting provider and personal contact with a responsible person at the company.
  3. Reset 2FA only for that account, never globally across the entire site, and require immediate reactivation right after the reset.
  4. Log the event in an internal record, so you have a trail for any later audit.

Only one or two trusted people should have the right to reset 2FA, since overly centralized permission increases the risk of abuse. Test the procedure at least once a year, and regularly train support staff so they don't cut corners on identity verification under stress.

What Admins Most Often Learn About 2FA Too Late

What admins most often learn about 2FA too late — overview diagram

The biggest mistake we see with clients isn't the absence of 2FA — it's a half-finished rollout. An admin enables two-factor authentication for themselves but forgets to make it mandatory for other editors who have the same access to the database. Voluntary adoption almost never reaches full coverage, which is why it makes sense to enforce it at the role level, not leave it up to the individual.

The minimum security standard we set for every business project at Moxy Web includes mandatory 2FA for all admin accounts, a security key for the main admin access, and a documented, tested reset procedure. Without that last part, any technical setup is only half a solution. For business projects where customer data security is critical, it's worth handing this over to an agency that also maintains the setup, not just switches it on once.

— Ziga

Help with Security Hardening for Your CMS Site

Implementing 2FA is only part of the story. At Moxy-web, we carry out a complete security assessment of your CMS site, set up two-factor authentication for every admin role, harden the configuration (wp-config.php, file permissions, WAF), and prepare a documented procedure for recovering access if you lose a device or key. Unlike a one-time plugin install that nobody maintains, this is a solution we monitor on an ongoing basis alongside hosting and technical support.

If you manage a business website or store and want security to be more than an afterthought, check out our guide to a secure business website, or reach out directly to Moxy-web for an assessment of your site's current state and a concrete implementation proposal.

Sources

For a deeper technical dive, we recommend the European guidelines on multi-factor authentication, the 2FA plugin repository on WordPress.org, and the EURES portal on two-step login.

Frequently Asked Questions

What is two-factor authentication in a CMS?

Two-factor authentication requires a second, independent proof of identity beyond a password, such as a code from an authenticator app or a physical key, which makes unauthorized access significantly harder even if a password is stolen.

Is SMS verification secure enough for a CMS admin account?

SMS is better than nothing, but it's vulnerable to SIM-swap attacks, so use it only as a fallback option, not as the primary protection for your main admin account.

How does QR code login work with 2FA?

Upon activation, the plugin displays a QR code, which you scan with an app like Google Authenticator; the app then generates a new one-time login code every 30 seconds.

What do I do if I lose access to my authenticator?

Use a backup code saved during activation; if you don't have one, follow your documented internal procedure for identity verification and resetting 2FA for your account only.

Does Moxy-web help set up 2FA for an existing site?

Yes, Moxy-web performs a security assessment, sets up 2FA for every admin role, and prepares a documented access recovery procedure as part of broader CMS site maintenance.

Moxy Web - How to protect forms from online abuse
Learn how to protect forms from spam, data theft, and attacks, and maintain a fast, friendly, and reliable user experience on your website.
Moxy Web - When to order a dark mode website for businesses so it doesn't fall apart
A practical, subscriber-oriented overview: when to include dark mode, technical requirements, implementation checklists, and how to ensure long-term maintenance....
Moxy Web - How much does an app cost for your business?
How much does an app cost? Learn about pricing factors, realistic budget ranges, and how to plan your project without expensive surprises when it comes to custom development.
Archive
3. 9. 2026
How to protect forms from online abuse
3. 9. 2026
When to order a dark mode website for businesses so it doesn't fall apart
2. 9. 2026
How much does an app cost for your business?
2. 9. 2026
Prevent role explosion: RBAC user roles for IT and development
1. 9. 2026
Time-saving company user portal
1. 9. 2026
Operators: Check RTO, RPO, and site recoverability within 30 days
31. 8. 2026
Best practices for corporate web design
31. 8. 2026
Implement two-factor login in CMS for administrators in four steps
30. 8. 2026
Example of integrating a web application with logistics
30. 8. 2026
Measure in production: Core Web Vitals audit for developers and marketers
29. 8. 2026
Overview of content management tools for businesses
29. 8. 2026
3-5 KPIs for websites and instructions for GA4, GSC and Matomo
28. 8. 2026
What does website accessibility mean for a business?
28. 8. 2026
Legally compliant online store in Slovenia: what you need to arrange
27. 8. 2026
The future of headless online stores in practice
27. 8. 2026
Headless CMS: what is it and who really benefits from it
26. 8. 2026
Web Analytics Guide for Better Decisions
26. 8. 2026
Online store renovation: when is the time and how to start
25. 8. 2026
Example of a user portal for companies
25. 8. 2026
WAF for Web Applications: How It Works and When You Need It
24. 8. 2026
The best portal features for efficient work
24. 8. 2026
Transactional Email in Ecommerce: What to Edit First
23. 8. 2026
Web analytics for better business decisions
23. 8. 2026
Why data is important when building a website
22. 8. 2026
Elements of trust of the decision-making party
22. 8. 2026
User Interface Easy Management Guide
21. 8. 2026
Website data security without the guesswork
21. 8. 2026
What are security protocols for websites and applications?
20. 8. 2026
How to speed up a page without losing functionality
20. 8. 2026
What is user experience and why does management decide about it?
19. 8. 2026
The future of custom development for companies today
19. 8. 2026
Why data backups are important for every business
18. 8. 2026
Best practices for mobile user experience
18. 8. 2026
What is digital transformation and why is it important for businesses?
17. 8. 2026
How to design an administrative user interface
17. 8. 2026
Why SEO is important for marketers and businesses
16. 8. 2026
Optimizing inquiry forms for multiple customers
16. 8. 2026
Page Load Speed: A Business Guide for Decision Makers
15. 8. 2026
Example of a sales-oriented website redesign
15. 8. 2026
SPA or MPA: which architecture suits your project?
14. 8. 2026
Key elements of an effective product page
14. 8. 2026
Mobile first approach: a guide for developers and site owners
13. 8. 2026
UX design for companies with a clear goal
13. 8. 2026
Online advertising for entrepreneurs and marketers in Slovenia
12. 8. 2026
Mobile-friendly business website sales
12. 8. 2026
UX research: what it is and how to conduct it step by step
11. 8. 2026
Best online ordering solutions in practice
11. 8. 2026
Microservices Architecture: An In-Depth Explanation and Decision Guide
10. 8. 2026
How to connect external systems: a practical guide for businesses
10. 8. 2026
Why do I need SSL on my website?
10. 8. 2026
How to edit a multilingual website for foreign markets
9. 8. 2026
What does unique website design mean for businesses?
8. 8. 2026
Online Backup Guide for Businesses
8. 8. 2026
The role of mobile adaptability for businesses in Slovenia
7. 8. 2026
An example of reducing abandoned online shopping carts
7. 8. 2026
Stripe vs PayPal for a Slovenian company: which one to choose?
6. 8. 2026
A guide to revamping your online store without the guesswork
6. 8. 2026
WooCommerce vs Shopify: Which Platform is Right for You?
5. 8. 2026
Dedicated hosting or shared hosting?
5. 8. 2026
What is an SSL certificate and why does your website absolutely need one?
4. 8. 2026
The most important features of a business website
4. 8. 2026
External Systems Integration Guide for Enterprises
3. 8. 2026
Rental platform or your own store for growth?
3. 8. 2026
The best website building tools for businesses
2. 8. 2026
What does monthly website maintenance include?
2. 8. 2026
Business app feature list: top 20 by priority
1. 8. 2026
How to arrange secure website hosting
1. 8. 2026
Types of Hosting for Businesses: A Practical Guide 2026
31. 7. 2026
Project Technical Specification Guide
31. 7. 2026
Website design for companies in Slovenia
30. 7. 2026
Best integrations for online business
30. 7. 2026
Price of website development in Slovenia 2026
29. 7. 2026
How to prepare web application functionalities
29. 7. 2026
Websites for businesses: a guide to making the right decision
28. 7. 2026
Hiring an agency or a freelancer - what to choose?
28. 7. 2026
Editing Websites with WordPress: A Guide 2026
27. 7. 2026
Business Hosting Review for Enterprises
27. 7. 2026
Independent website creation for beginners
26. 7. 2026
The best CMS for business growth is not always the same
26. 7. 2026
Steps to improve website user experience
25. 7. 2026
Manage inventory in your online store without the guesswork
25. 7. 2026
Why automate processes in your company?
24. 7. 2026
When to choose a custom store design?
24. 7. 2026
Benefits of freelance content editing for businesses
23. 7. 2026
Trends in the development of online stores in 2026
23. 7. 2026
Domain Registration Guide: Step by Step
22. 7. 2026
Development of web portals that support growth
22. 7. 2026
What is data security and how to protect data
21. 7. 2026
Custom development or Shopify: what to choose?
21. 7. 2026
The role of analytics in the development of strategic HR management
20. 7. 2026
A guide to developing a custom web application
20. 7. 2026
Digital Presence: Key Steps for Businesses in 2026
19. 7. 2026
A company's digital strategy that brings business
19. 7. 2026
Website Redesign: A Guide for Entrepreneurs 2026
18. 7. 2026
B2B portal that simplifies ordering for customers
18. 7. 2026
Creating a WordPress website for businesses: a guide 2026
17. 7. 2026
How much does it cost to maintain a store per month?
17. 7. 2026
The role of technological innovation for business competitiveness
16. 7. 2026
Custom CMS or WordPress for business growth
16. 7. 2026
List of CMS Platforms for Enterprise: A Guide for Managers 2026
15. 7. 2026
How to choose a web developer without making costly mistakes
15. 7. 2026
Why professional hosting determines the success of a website
14. 7. 2026
WordPress or a custom website for growth?
14. 7. 2026
Examples of modern design: inspiration for projects 2026
13. 7. 2026
Website integration with CRM without losing leads
13. 7. 2026
What is content strategy: a guide for businesses
12. 7. 2026
Example of revamping an outdated website
12. 7. 2026
Benefits of Responsive Design for Businesses in 2026
11. 7. 2026
User experience personalization trends
11. 7. 2026
How to plan your company's digital transformation in 2026
10. 7. 2026
Web application or Excel - what to choose?
10. 7. 2026
Why content management is key to your success
9. 7. 2026
An example of a successful B2B online store
9. 7. 2026
The role of external systems integration in business
8. 7. 2026
Best practices for product filters
8. 7. 2026
The process of creating a graphic image: a guide for 2026
7. 7. 2026
When does a company need a website redesign?
7. 7. 2026
Why use API integrations in business?
6. 7. 2026
Trends in business web systems security
6. 7. 2026
Why user analytics is important for growth
5. 7. 2026
Business online security without empty promises
5. 7. 2026
How to Set Up Hosting for a Business: Guide 2026
4. 7. 2026
Evaluation of CMS solutions for businesses without fogging
4. 7. 2026
What is Graphic Design: A Guide for Businesses 2026
3. 7. 2026
Hire an agency or develop in-house?
3. 7. 2026
What is a domain and why every business needs one
2. 7. 2026
Why a business needs a web application
2. 7. 2026
Why security updates are important in 2026
1. 7. 2026
Content strategy for a business page
1. 7. 2026
Top 4 agency alternatives for novisplet.com 2026
30. 6. 2026
Does a company need its own CMS?
30. 6. 2026
What is Modern Design: A Guide for Businesses 2026
29. 6. 2026
How to choose the right domain for your business
29. 6. 2026
What is a corporate visual identity: a guide for 2026
28. 6. 2026
Overview of online commerce platforms
28. 6. 2026
How to Design Responsive Websites: A 2026 Guide
27. 6. 2026
How to choose an online store structure
27. 6. 2026
Marketing checklist for a company's digital presence
26. 6. 2026
Best features for a B2B portal
26. 6. 2026
What is User Experience Personalization: A Guide 2026
25. 6. 2026
Shopify or custom store?
25. 6. 2026
Digital Strategy Creation Workflow: Guide 2026
24. 6. 2026
What does custom development mean in practice?
24. 6. 2026
How technical support works: a guide for entrepreneurs
23. 6. 2026
What are design standards: a guide for businesses
23. 6. 2026
How long does it take to create a store?
22. 6. 2026
How to prepare a brief for a website
22. 6. 2026
UX Design Best Practices for Digital Professionals
21. 6. 2026
Business Systems Integration Guide
21. 6. 2026
Workflow for digital company presentation: guide 2026
20. 6. 2026
Best solutions for content editing
20. 6. 2026
Why choose custom development for your business?
19. 6. 2026
Landing page design that sells
19. 6. 2026
Tips for easily managing content in your company
18. 6. 2026
Purchase funnel optimization that sells
18. 6. 2026
Top 6 alternatives to moxy-designs.com in 2026
17. 6. 2026
Top mistakes in website redesign
17. 6. 2026
Top 6 alternatives to mojaspletka.si agencies 2026
16. 6. 2026
What is included in web hosting?
16. 6. 2026
Benefits of scalable applications for growing businesses
15. 6. 2026
Responsive website design without compromise
15. 6. 2026
The Role of Digital Presence for Business Growth 2026
14. 6. 2026
The Role of Automation in Business: A Guide to 2026
14. 6. 2026
Website user experience counts
13. 6. 2026
Tips for improving your digital presence in 2026
13. 6. 2026
How to prepare content for a website
12. 6. 2026
What is website accessibility: a guide for entrepreneurs
12. 6. 2026
Website maintenance for businesses
11. 6. 2026
Benefits of the Modular Web for Businesses in 2026
11. 6. 2026
Trouble-free maintenance of online systems
10. 6. 2026
Step by step: creating a portal for entrepreneurs
10. 6. 2026
A B2B online store that really accelerates sales
9. 6. 2026
The role of digital strategy for business growth in 2026
9. 6. 2026
Managing website content without chaos
8. 6. 2026
What is an e-commerce platform: a guide for businesses 2026
8. 6. 2026
How to connect an online store to ERP
7. 6. 2026
The Role of Fast Page Loading for Entrepreneurs 2026
7. 6. 2026
Guide to redesigning your business website
6. 6. 2026
Content Editing Steps: A Guide for Businesses 2026
6. 6. 2026
How to improve website conversions
5. 6. 2026
Why use an SSL certificate for a secure website?
5. 6. 2026
A booking system that really saves time
4. 6. 2026
The Role of SEO for Businesses: Growth Strategy 2026
4. 6. 2026
How long does it take to develop a web application?
3. 6. 2026
Web Application Development Guide 2026
3. 6. 2026
Payment system integration for online stores
2. 6. 2026
The Role of Analytics in Digital Business: A Guide to 2026
2. 6. 2026
Website or store - what to choose?
1. 6. 2026
GDPR v spletnem okolju: vodnik za podjetja 2026
1. 6. 2026
How is the development of an online store going?
31. 5. 2026
Top 6 how much does it cost to create an agency website 2026
31. 5. 2026
Online Business Automation Trends 2026
30. 5. 2026
The role of artificial intelligence in the web: a guide to 2026
30. 5. 2026
Website Migration Guide
29. 5. 2026
What is front-end development: a guide for 2026
29. 5. 2026
Online User Experience Trends 2026
28. 5. 2026
Website Design: A Guide for Entrepreneurs 2026
28. 5. 2026
Trends in the development of business portals in practice
27. 5. 2026
List of mandatory online store functionalities 2026
27. 5. 2026
When does it make sense to redesign a website?
26. 5. 2026
What is a landing page and why is it key to sales?
26. 5. 2026
How to design a business website
25. 5. 2026
Website Hosting Guide: Choosing and ManagingWebsite Hosting Guide: Choosing and Managing
25. 5. 2026
How to edit content without a programmer
24. 5. 2026
What is UX on the web: a guide for entrepreneurs
24. 5. 2026
WordPress or custom development?
23. 5. 2026
Individual approach in web development: why it matters
23. 5. 2026
Corporate graphic image price: what influences it
22. 5. 2026
A Guide to Website Design in 2026
22. 5. 2026
Creating a custom website pays off
21. 5. 2026
Website Maintenance Process: A Guide for Businesses
21. 5. 2026
The best functionalities of a business online store
20. 5. 2026
Website Creation Checklist: Guide 2026
20. 5. 2026
Creating online stores for businesses
19. 5. 2026
Website Development: A Practical Guide for Entrepreneurs
19. 5. 2026
Business systems integration without chaos
18. 5. 2026
The most common mistakes in developing web solutions
18. 5. 2026
Website support that really works
17. 5. 2026
Examples of aesthetic website design
17. 5. 2026
B2B portal development guide
16. 5. 2026
Definition of Modern Web Development: A Guide for Entrepreneurs
16. 5. 2026
Pre-built platform or custom solution?
15. 5. 2026
Web application scalability: the key to business growth
15. 5. 2026
How to improve website speed
14. 5. 2026
What is web hosting and how to choose the right solution
14. 5. 2026
A guide to a secure business website
13. 5. 2026
Top 10 online trends for businesses: digital growth 2026
13. 5. 2026
A business website that works for a company
12. 5. 2026
Why test online solutions for business success
12. 5. 2026
Choosing an online store platform
11. 5. 2026
Examples of integrating web tools for efficient business
11. 5. 2026
Graphic design for a company that sells
10. 5. 2026
Step by step to successful web application development
10. 5. 2026
UX design of an online store that sells
9. 5. 2026
What is an online store and how to set one up successfully
9. 5. 2026
Graphic design of the overall image
8. 5. 2026
Investing in a website: The key to business growth
8. 5. 2026
Renovate an outdated website without the guesswork
7. 5. 2026
What is a web application and how does it help your business?
7. 5. 2026
How Website Maintenance Works
6. 5. 2026
Effectively Managing Website Content: A Guide for Businesses
6. 5. 2026
Responsive website for business
5. 5. 2026
What is online branding and how does it improve your appearance?
5. 5. 2026
Custom CMS for your business or off-the-shelf solution?
4. 5. 2026
Business Process Automation with a Web Application
4. 5. 2026
Web architecture: the key to a better online presence
3. 5. 2026
Online store integration with delivery
3. 5. 2026
How to design unique online solutions for business growth
2. 5. 2026
Connecting your online store to your accounting
2. 5. 2026
Explaining modern web applications for business growth
1. 5. 2026
What is e-commerce? Everything SMEs need to know to succeed
1. 5. 2026
Corporate Website Security Without Illusions
30. 4. 2026
Top 4 oxmo.si alternatives 2026
30. 4. 2026
Registering a domain name for your business without mistakes
29. 4. 2026
Static vs. Dynamic Website: What It Means for Your Business
29. 4. 2026
Business Website Hosting
28. 4. 2026
Web Design Trends for a Better Digital Presence
28. 4. 2026
Website Maintenance - Price and Reality
27. 4. 2026
How to Build an Online Store
27. 4. 2026
Top 6 mojbiz.si alternatives 2026
26. 4. 2026
What does building a website involve?
26. 4. 2026
Modern Technologies for Successful Web Development and Growth
25. 4. 2026
When is a custom web application the right choice?
25. 4. 2026
8 Benefits of a Modern Online Store for Business Success
24. 4. 2026
How to Optimize Your Website for Better Results
24. 4. 2026
Creating an online store - price without fog
23. 4. 2026
Why Website Speed ​​Is Key to Success
23. 4. 2026
How much does it cost to create a website?