Use change PIN API when resetting PIN (bug 1014126)

close #479