Newer
Older
flow-task / server / App / routes_map.php
@eugene-sukhodolskiy eugene-sukhodolskiy 20 days ago 356 bytes Init
<?php

namespace App;

function init_routes_map($router) {
	$router -> linking("GET", "signup", function(){
		$uname = $_GET["username"];
		$password = $_GET["password"];

		$auth = new Auth();

		if($auth -> user_name_is_exists($uname)) {
			return error("signup", "User name already exists");
		}

		$auth -> signup($uname, $password);

		return 
	});
}