> For the complete documentation index, see [llms.txt](https://if-developments.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://if-developments.gitbook.io/docs/resources/login-signup.md).

# Login/Signup

Fully Customizable | Verify system by phone | All logs save on discord / sql | Discord logs system | Create Username/Password for your players

<details>

<summary>INSTALLATION</summary>

* Install SQL
  * Setup Config
    * Setup Phone Verify\
      Enable VERIFY\
      Set API keys

</details>

<details>

<summary>Config</summary>

## <img src="https://i.imgur.com/0pUPyjP.png" alt="" data-size="original">

## <img src="https://i.imgur.com/0w3gbYU.png" alt="" data-size="original">

**Setup the config files:**

{% code lineNumbers="true" %}

```lua
Config_S = {
    verification = { 
        phoneNumberVerifyAPIKey = "", -- Get it on: https://www.vonage.com/
        phoneNumberVerifyAccountSecret = "",

        message = "This is the verify code: "
    },

    discordLogs = {
        enable = true,
        weebook = "",
    }
}

Config = {
    Colors = {
        fill = '#ffff',
        shadow = '#ffff',
        background = 'rgba(255, 255, 255, 0.11)',
    },

    verifycation = true,

    PhoneNumber = {
        maxLength = 13,
        minLength = 9,
    },

    Lang = {
        servername = "Server Name",

        login = "LOGIN",
        signup = "SIGN UP",
        signup2 = "SIGN UP",
        welcome = "WELCOME TO SERVERNAME",
        subtitle = "We are glad to see you on our project and have prepared a small guide on the main functions of our project!",
        username = "Username",
        email = "Email",
        username_email = "Username/Email",
        password = "Password",
        phonenumber = "Phone number",
        verifycode = "Verify Code",
        discordid = "Discord ID",

        alreadyaccount = "I have an account already",
        noaccount = "I don't have an account yet",

        discord = "DISCORD",
        discordlink = "discord.gg/u3m8nWVjbM",
        website = "WEBSITE",
        webslink = "discord.gg/u3m8nWVjbM",


        alreadyused = "ALREADY USED",
        nopasswordok = "DOES NOT MEET THE REQUIRED PARAMETERS",
        verifycodesended = "VERIFY CODE SENDED",
        verifyPhone = "ON YOUR PHONE NUMBER",
        verifyEmail = "ON YOUR EMAIL",
        verifycodenovalid = "NOT VALID",
        notSended = "ERROR - NOT SENDED",

        accountNotFound = "ERROR - USERNAME OR EMAIL INCORRECT",
        passwordError = "ERROR - PASSWORD INCORRECT",
    }
}
```

{% endcode %}

</details>

<details>

<summary>Phone Verify</summary>

* SETUP PHONE VERIFY\
  Enable VERIFY -->\
  Set **TRUE** the verification : `ifscripts_login/config/config_c.lua`<br>

<img src="https://i.imgur.com/UvNWi3P.png" alt="" data-size="original">

* Set API keys\
  Go ON : [**Vonage Site**](https://if-developments.gitbook.io/docs/resources/www.vonage.com)
  * Login on this Website -->\
    Click **Communications APIs Login**\
    On Left Side Click **API Settings**\
    Set **API Key** and **API Secret 1**
* Check Images

<img src="https://i.imgur.com/0SPGI4I.png" alt="" data-size="original">

<img src="https://i.imgur.com/gQ8Iocc.png" alt="" data-size="original">

* **Setup the verification config :** `ifscripts_login/config/config_s.lua`

<img src="https://i.imgur.com/0w3gbYU.png" alt="" data-size="original">

</details>
