Implement index action for member module

This commit is contained in:
Kijin Sung 2023-06-20 00:27:42 +09:00
parent f97b67caf7
commit 3b265d5278
2 changed files with 22 additions and 6 deletions

View file

@ -53,6 +53,21 @@ class MemberView extends Member
}
}
/**
* Module index
*/
public function dispMemberIndex()
{
if ($this->user->isMember())
{
$this->setRedirectUrl(getUrl(['mid' => $this->mid, 'act' => 'dispMemberInfo']));
}
else
{
$this->setRedirectUrl(getUrl(['mid' => $this->mid, 'act' => 'dispMemberLoginForm']));
}
}
/**
* @brief Display member information
*/