Output mail inbox address as permission

This commit is contained in:
Melon 2023-11-19 20:32:33 +00:00
parent 41db9d605c
commit a4983a2244
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -195,7 +195,7 @@ func (h *HttpServer) flowCallback(rw http.ResponseWriter, req *http.Request, _ h
n := strings.IndexByte(address.Address, '@')
if n != -1 {
if address.Address[n+1:] == v.sso.Config.Namespace {
ps.Set("mail:client")
ps.Set("mail:inbox=" + address.Address)
}
}
}