Register users and authenticate with magic links using Google Sheets — рабочий процесс n8n

Высокая сложность Триггер30 узлов🏷️ Miscellaneous👁 2 просмотровот ICTS Automation

Обзор

This workflow implements a lightweight authentication system for n8n web portals using Google Sheets as a simple user and session store. It supports email-based registration, username and password login, one-click magic link authentication, and cookie-based session management.

How it works Users register with an email address through a form. The workflow generates a password and a one-time authentication token. User credentials and token are stored in Google Sheets. An email is sent with login

Использованные узлы

Google SheetsGmailCode

Предпросмотр рабочего процесса

1. Login
Validate username and password against Google Sheets, t
0. Register
Collect an email address via form, generate credentials
2. Auth
Validate the one-time token via Google Sheets, generate
3. Profile
Read the sid cookie, look up the active session in Goog
Overview
This workflow provides a lightweight authentication flo
Append or update row in …
Prepare sid
Generate token
I
If has token in DB
I
If has token
Search by token
O
On form register
Create password and token
Send username/password
N
Notice register success
O
On form login
Check username/password
I
If login success
R
Redirect to login form
R
Redirect to auth url
Add token to DB
R
Redirect to auth with ne…
A
Auth
I
Invalid token
I
If token valid
R
Redirect to login form1
Update sid
R
Redirect to profile and …
P
Profile
Check sid cookies header
Search sid
I
If has data with sid
R
Redirect to login
Prepare html
S
Show profile page
30 nodes26 edges

Как это работает

  1. 1

    Триггер

    Рабочий процесс запускается триггером триггер.

  2. 2

    Обработка

    Данные проходят через 30 узлов, connecting code, form, formtrigger.

  3. 3

    Вывод

    Рабочий процесс завершает автоматизацию и доставляет результат в настроенное место назначения.

Детали узлов (30)

GO

Google Sheets

googleSheets

#1
GM

Gmail

gmail

#2
CO

Code

code

#3

Как импортировать этот рабочий процесс

  1. 1Нажмите кнопку Скачать JSON справа, чтобы сохранить файл рабочего процесса.
  2. 2Откройте ваш экземпляр n8n. Перейдите в Рабочие процессы → Новый → Импорт из файла.
  3. 3Выберите скачанный файл register-users-and-authenticate-with-magic-links-using-google-sheets и нажмите Импортировать.
  4. 4Настройте учётные данные для каждого узла сервиса (ключи API, OAuth и т.д.).
  5. 5Нажмите Протестировать рабочий процесс, чтобы убедиться в правильной работе, затем активируйте его.

Или вставьте напрямую в n8n → Импорт из JSON:

{ "name": "Register users and authenticate with magic links using Google Sheets", "nodes": [...], ...}

Интеграции

codeformformtriggergmailgooglesheetsifrespondtowebhookwebhook

Получить этот рабочий процесс

Скачайте и импортируйте одним кликом

Скачать JSONПросмотреть на n8n.io
Узлы30
Сложностьhigh
Триггерtrigger
Просмотры2
КатегорияMiscellaneous

Создан

ICTS Automation

ICTS Automation

@ictsautomation

Теги

codeformformtriggergmailgooglesheetsifrespondtowebhookwebhook

Новичок в n8n?

n8n — бесплатный инструмент автоматизации рабочих процессов с открытым исходным кодом. Разверните самостоятельно или используйте облачную версию.

Получить n8n бесплатно →

Related Miscellaneous Workflows