mirror of
https://github.com/mjl-/mox.git
synced 2025-07-19 08:46:38 +03:00
web interfaces: don't include version number in html, only return it after authentication
second round for issue #322
This commit is contained in:
@ -414,6 +414,15 @@ export class Client {
|
||||
return await _sherpaCall(this.baseURL, this.authState, { ...this.options }, paramTypes, returnTypes, fn, params) as void
|
||||
}
|
||||
|
||||
// Version returns the version, goos and goarch.
|
||||
async Version(): Promise<[string, string, string]> {
|
||||
const fn: string = "Version"
|
||||
const paramTypes: string[][] = []
|
||||
const returnTypes: string[][] = [["string"],["string"],["string"]]
|
||||
const params: any[] = []
|
||||
return await _sherpaCall(this.baseURL, this.authState, { ...this.options }, paramTypes, returnTypes, fn, params) as [string, string, string]
|
||||
}
|
||||
|
||||
// SetPassword saves a new password for the account, invalidating the previous
|
||||
// password.
|
||||
//
|
||||
|
Reference in New Issue
Block a user