configuration

package
v0.0.0-...-eacaa5b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2021 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// should agree with client and server values eg server constants.go, ios Constants.swift
	/* server + client set values */
	PASSWORD_MIN_LENGTH = 6
	// USERNAME_MAX_LENGTH      = 12
	USERNAME_MIN_LENGTH = 4

	// REGEX_USERNAME_CLIENT = "^@[-0-9a-zA-Z\\_]*$" // client side starts with @, server side does not
	REGEX_USERNAME_CLIENT = "^[-0-9a-zA-Z\\_]*$" // letters, numbers and underscore only
	REGEX_USERNAME_SERVER = "^[-0-9a-zA-Z\\_]*$"

	REGEX_EMAIL = "" /* 133-byte string literal not displayed */

	/* server configs */
	BRANDING  = "ACloudApp.org"
	BRANDING2 = "acloudapp" // this is used for url eg acloudapp://

	PASSWORD_TEMPORARY_EXPIRY = 12     // hours
	LOGGED_IN_EXPIRY          = 24 * 5 // 5 days

	DEV_CHEAT_SLUG             = "123xyz123"
	LOGGED_IN_EXPIRY_DEV_CHEAT = 24 * 365

	DEFAULT_LANGUAGE = "en"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL