Update User.php

add duration #15