Direct login - Fluid Topics - Latest

Fluid Topics Designer Guide

Category
Reference Guides
Audience
public
Version
Latest

The directLogin() method allows to log in.

The following examples show how to use the directLogin() method:

HTML:

<input type="text" id="loginInput" placeholder="Enter your login">
<input type="password" id="passwordInput" placeholder="Enter your password">
<button id="loginButton">Log In</button>

JavaScript:

document.getElementById("loginButton").addEventListener("click", () => {
    const login = document.getElementById("loginInput").value;
    const password = document.getElementById("passwordInput").value;
    FluidTopicsAuthenticationService.directLogin(login, password);
});