This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Validates request body using a set of rules | |
| * @param req Request body, req.body | |
| * @param rules Array of required fields | |
| * @return {{body: {}, errors: string}} Required fields and errors | |
| * @example | |
| const { body, errors } = ValidateRequest(req.body, [ | |
| 'username', | |
| 'last_name', | |
| 'email', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type errors = { | |
| email: string, | |
| password: string, | |
| name?: string | |
| } | |
| /** | |
| * Formats errors as human readable json | |
| * @param error Error object or empty object incase of incorrect password | |
| * @param incorrectEmail boolean |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <v-app style="background: #e2e8eb;"> | |
| <v-container> | |
| <v-row justify="center"> | |
| <v-col cols="12" md="5"> | |
| <v-container> | |
| <v-card class="ma-5 pa-5" color="#e2e8eb"> | |
| <v-card-title> | |
| <h1>Login</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>My File Upload Project</title> | |
| <!-- Just some little style --> | |
| <link rel="stylesheet" href="css/bootstrap.min.css"> | |
| </head> |