Login guide
The Login module provides a standardized method for implementing secure user identification workflows for web apps.
Field name
Specs
Creating the User class
<?php
namespace CherrycakeApp;
class User extends \Cherrycake\LoginUser {
protected $tableName = "users";
protected $fields = [
"id" => ["type" => \Cherrycake\DATABASE_FIELD_TYPE_INTEGER],
"name" => ["type" => \Cherrycake\DATABASE_FIELD_TYPE_STRING],
"email" => ["type" => \Cherrycake\DATABASE_FIELD_TYPE_STRING],
"passwordHash" => ["type" => \Cherrycake\DATABASE_FIELD_TYPE_STRING]
];
}Last updated