V
V
Vladislav2021-11-18 16:05:04
PHP
Vladislav, 2021-11-18 16:05:04

Authorization and user authentication?

Tell me how to authorize and authenticate a user?
I just switched from Yii2 and here, of course, it's a little different.
And there are no methods familiar to me: Yii:$app->security->validatePassword - compares the password hash and password
And no, of course Yii::$app->user->login([entity user])

How to do this in Symphony, I I've looked all over the internet and can't find anything

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Babichev, 2021-11-18
@cr1gger

Follow the instructions and everything will work out:
https://symfony.com/doc/current/security.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question