yii2-user
yii2-user copied to clipboard
introduce $allowedIpConfiguration
Ip configuration that determines if an administrator can log in. Defaults to null which means that no ip check is being performed.
| Q | A |
|---|---|
| Is bugfix? | no |
| New feature? | yes |
| Breaks BC? | no |
This would deny admins to login from unknown IPs, but not normal users. Would it not make more sense to just NOT give them admin permissions instead?
This is an security improvement headed towards administrator users. But you are right, i am thinking about an even more flexible solution: a column allowed_ips in the user table so that users can be restricted to ip range(s) very flexibly. What do you think?
We need more opinions about this change.