'1') ); } catch (\Exception $e){ \OCP\JSON::error( array('msg'=> $e->getMessage()) ); } exit(); } public static function resetPassword($args) { \OCP\JSON::callCheck(); try { Controller::resetPassword($args); \OCP\JSON::success(); } catch (Exception $e){ \OCP\JSON::error( array('msg'=> $e->getMessage()) ); } exit(); } }