Update User.php

added the new duration parameter to match yii\web\user-interface #15