From fa5129b1b4443c948c998f8eeb6dd191cf2a549e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Mon, 16 Jan 2023 07:09:31 +0800 Subject: Conform to failpage param --- interchange/admin.hxx | 4 +++- interchange/member.hxx | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'interchange') diff --git a/interchange/admin.hxx b/interchange/admin.hxx index 34597c2..2c0d86b 100644 --- a/interchange/admin.hxx +++ b/interchange/admin.hxx @@ -37,7 +37,9 @@ namespace QInterchange { void setSuper(bool super); public slots: - void logIn(QString const& username, QString const& password); + void logIn(QString const& username, + QString const& password, + QString const& failPage = nullptr); void newAdmin(QString const& userName, QString const& password, QString const& name, bool super, enum interchange_admin_group group); void newItem(QString const& description, QString const& comment, QString const& price, diff --git a/interchange/member.hxx b/interchange/member.hxx index c75c7a3..2cd9c49 100644 --- a/interchange/member.hxx +++ b/interchange/member.hxx @@ -101,8 +101,11 @@ namespace QInterchange { public slots: void newAccount(QString const& username, QString const& password, - QString const& confirm); - void logIn(QString const& username, QString const& password); + QString const& confirm, + QString const& failPage = nullptr); + void logIn(QString const& username, + QString const& password, + QString const& failPage = nullptr); void account(QString const& firstName, QString const& lastName, QString const& address1, QString const& address2, QString const& city, QString const& state, -- cgit v1.2.3