D
D
dilshod_developer2016-03-13 08:00:26
Yii
dilshod_developer, 2016-03-13 08:00:26

user password rule?

Good time of day.
I have a question about user password.
How to make it so that during user registration password would be a required field. And while editing the user would be optional.
I am using yii2
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2016-03-14
@Sassoft

It's best to create two separate classes for registration and editing.
You should stick to the SRP.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question