def update_password(user, password):
 user.password = encrypt_password(password)
 _datastore.put(user)
 send_password_reset_notice(user)
 password_reset.send(app._get_current_object(), user=user)

def update_password ( user , password ) : user . password = encrypt_password ( password ) _datastore . put ( user ) send_password_reset_notice ( user ) password_reset . send ( app . _get_current_object ( ) , user = user )
update the specified users password .