Update User.php

change behavior function.