Version: 1.4
Category: User Authentication
Requirements: PHP-compatible web server with SQLite support

Description

neoLogin provides a complete, lightweight user authentication system for VisualNEO Web applications.
It uses a PHP backend (neologin.php) and a SQLite database, offering secure and simple user management without requiring a complex server setup or external dependencies.

Designed for easy integration, neoLogin allows you to register users, authenticate sessions, change passwords, update user data, and manage access levels directly from your VisualNEO Web app using simple commands. Each user can include additional structured data stored as JSON, and access levels can be customized to control permissions across your app.

The plugin is ideal for turning standalone VisualNEO Web projects into multi-user SaaS systems, intranets, or restricted-access web apps with minimal setup.

Key Features

  • Fully functional login and registration system.
  • SQLite backend: fast, portable, and serverless database.
  • Configurable access levels (0 = admin, 1 = editor, 2 = read-only).
  • Session tokens for persistent login and automatic validation.
  • Store custom user information in JSON format (user_data).
  • Built-in password management (change, validation, secure hash).
  • Admin-only functions for listing, updating, or deleting users.
  • Works locally or remotely by setting a server URL.

Typical Use Cases

  • SaaS-style web apps built with VisualNEO Web.
  • Membership or client-area portals.
  • Internal company dashboards or restricted tools.
  • Educational or collaborative apps requiring user roles.

 

neoLoginSetServerUrl

Purpose:

Set the server URL for login system (leave empty to use local)

Category:

neoLogin

Syntax:

neoLoginSetServerUrl serverUrl

 

serverUrl

Full or relative URL to neologin.php (optional)

 

neoLoginRegister

Purpose:

Register a new user in the login system (forced to minimum access level)

Category:

neoLogin

Syntax:

neoLoginRegister "username" "password" "userDataJson" callback errorCallback

 

username

Username

password

Password

userDataJson

JSON string with user data

callback

Callback on success

errorCallback

Callback on error

 

neoLoginAuthenticate

Purpose:

Authenticate a user and retrieve session token

Category:

neoLogin

Syntax:

neoLoginAuthenticate "username" "password" userVar returnVar callback errorCallback

 

username

Username

password

Password

userVar

Variable to store user data object

returnVar

Variable to store session token

callback

Callback on success

errorCallback

Callback on error

 

neoLoginIsLoggedIn

Purpose:

Verify session token and retrieve user info

Category:

neoLogin

Syntax:

neoLoginIsLoggedIn "token" returnVar callback errorCallback

 

token

Session token

returnVar

Variable to store true/false

callback

Callback on success

errorCallback

Callback on error

 

neoLoginLogout

Purpose:

Logout the current user by invalidating session token

Category:

neoLogin

Syntax:

neoLoginLogout "token" callback errorCallback

 

token

Session token

callback

Callback on success

errorCallback

Callback on error

 

neoLoginChangePassword

Purpose:

Change password for the currently logged in user

Category:

neoLogin

Syntax:

neoLoginChangePassword "token" "oldPassword" "newPassword" returnVar callback errorCallback

 

token

Session token

oldPassword

Current password

newPassword

New password

returnVar

Variable true/false result

callback

Callback on success

errorCallback

Callback on error

 

neoLoginUpdateUserData

Purpose:

Update the user_data JSON associated to the session user

Category:

neoLogin

Syntax:

neoLoginUpdateUserData "token" "newUserDataJson" returnVar callback errorCallback

 

token

Session token

newUserDataJson

New JSON data

returnVar

Variable to store updated JSON

callback

Callback on success

errorCallback

Callback on error

 

neoLoginUserExists

Purpose:

Check if a username already exists

Category:

neoLogin

Syntax:

neoLoginUserExists "username" returnVar callback errorCallback

 

username

Username to check

returnVar

Variable to store true/false

callback

Callback with result

errorCallback

Callback on error

 

neoLoginSetAccessLevel

Purpose:

Change the access level of a user (admin only)

Category:

neoLogin

Syntax:

neoLoginSetAccessLevel "token" "targetUsername" newAccessLevel returnVar callback errorCallback

 

token

Session token of the admin user

targetUsername

Username to modify

newAccessLevel

New access level to set

returnVar

Variable true/false result

callback

Callback on success

errorCallback

Callback on error

 

neoLoginListUsers

Purpose:

List all registered users (admin only)

Category:

neoLogin

Syntax:

neoLoginListUsers "token" returnVar callback errorCallback

 

token

Session token of admin user

returnVar

Variable to store array of users

callback

Callback on success

errorCallback

Callback on error

 

neoLoginDeleteUser

Purpose:

Delete a registered user (admin only)

Category:

neoLogin

Syntax:

neoLoginDeleteUser "token" "targetUsername" returnVar callback errorCallback

 

token

Session token of admin user

targetUsername

Username to delete

returnVar

Variable true/false result

callback

Callback on success

errorCallback

Callback on error

 

neoLoginGetUserByName

Purpose:

Get access level and user_data of a specific user (admin only)

Category:

neoLogin

Syntax:

neoLoginGetUserByName "token" "targetUsername" returnVar callback errorCallback

 

token

Session token of admin user

targetUsername

Username to lookup

returnVar

Variable to store user object

callback

Callback on success

errorCallback

Callback on error

 

neoLoginExtendSession

Purpose:

Extend current session expiration (if still valid)

Category:

neoLogin

Syntax:

neoLoginExtendSession "token" returnVar callback errorCallback

 

token

Session token to extend

returnVar

Variable to store expiration timestamp

callback

Callback on success

errorCallback

Callback on error

Created with the Personal Edition of HelpNDoc: Streamline Your Documentation Creation with a Help Authoring Tool