def change_user_password(user, password):
 user.password = encrypt_password(password)
 _datastore.put(user)
 send_password_changed_notice(user)
 password_changed.send(app._get_current_object(), user=user._get_current_object())

def change_user_password ( user , password ) : user . password = encrypt_password ( password ) _datastore . put ( user ) send_password_changed_notice ( user ) password_changed . send ( app . _get_current_object ( ) , user = user . _get_current_object ( ) )
change the specified users password .