User registration automatically in cakephp

Is it possible in cakephp to automatically register a user with a predefined set of inputs (username, password and all that ...) provided by the programmer.?

I want to automatically register a user whenever he tries to enter / access a closed zone.

Please help me achieve this functionality.

Using cakephp v1.2, xampp

Thanks...

+3
source share
2 answers

:)

Found the answer :)

I just assigned

'$this->data'

some values ​​on their own like this

$this->data['User']['password'] = "test";
$this->data['User']['email'] = "test@email.com";
$this->data['User']['password'] = "Registered";

and then the add action acted accordingly.

+2
source

. , , . , . , . ?

+1

Source: https://habr.com/ru/post/1713450/


All Articles