HostServ: vhost request/approval flow
REQUEST <host> records a pending vhost (typed Option<PendingVhost> on the account, VhostRequested/VhostRequestCleared events); operators review with WAITING and either ACTIVATE (assign + apply to online sessions) or REJECT (clear it). Host validation and the operator gate are shared with SET.
This commit is contained in:
parent
1227e26b95
commit
1edf250952
8 changed files with 217 additions and 4 deletions
|
|
@ -586,6 +586,9 @@ pub trait Store {
|
|||
fn del_vhost(&mut self, account: &str) -> Result<bool, RegError>;
|
||||
fn vhost(&self, account: &str) -> Option<VhostView>;
|
||||
fn vhosts(&self) -> Vec<VhostView>;
|
||||
fn request_vhost(&mut self, account: &str, host: &str) -> Result<(), RegError>;
|
||||
fn take_vhost_request(&mut self, account: &str) -> Result<Option<String>, RegError>;
|
||||
fn vhost_requests(&self) -> Vec<(String, String)>;
|
||||
fn group_nick(&mut self, nick: &str, account: &str) -> Result<(), RegError>;
|
||||
fn ungroup_nick(&mut self, nick: &str) -> Result<bool, RegError>;
|
||||
fn drop_account(&mut self, account: &str) -> Result<bool, RegError>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue