def get_arguments(self):
parser = reqparse.RequestParser()
parser.add_argument(
"old_password",
required=True,
help="Old password is missing."
)
parser.add_argument(
"password",
required=True,
help="New password is missing."
)
parser.add_argument(
"password_2",
required=True,
help="New password confirmation is missing."
)
args = parser.parse_args()
return (
args["old_password"],
args["password"],
args["password_2"]
)
评论列表
文章目录