mirror of
https://github.com/matrix-construct/construct
synced 2025-03-13 21:10:32 +01:00
ircd:Ⓜ️:user: Remove noexcept for I/O interrupt; minor cleanup.
This commit is contained in:
parent
98d04ebb2f
commit
5f4d8afd86
2 changed files with 6 additions and 3 deletions
|
@ -60,7 +60,7 @@ struct ircd::m::user
|
|||
id::room room_id(const mutable_buffer &) const;
|
||||
id::room::buf room_id() const;
|
||||
|
||||
bool is_password(const string_view &password) const noexcept;
|
||||
bool is_password(const string_view &password) const;
|
||||
event::id::buf password(const string_view &password);
|
||||
|
||||
bool is_active() const;
|
||||
|
|
|
@ -141,7 +141,10 @@ ircd::string_view
|
|||
ircd::m::user::gen_access_token(const mutable_buffer &buf)
|
||||
{
|
||||
static const size_t token_max{32};
|
||||
static const auto &token_dict{rand::dict::alpha};
|
||||
static const auto &token_dict
|
||||
{
|
||||
rand::dict::alpha
|
||||
};
|
||||
|
||||
const mutable_buffer out
|
||||
{
|
||||
|
@ -215,7 +218,7 @@ ircd::m::user::password(const string_view &password)
|
|||
bool
|
||||
IRCD_MODULE_EXPORT
|
||||
ircd::m::user::is_password(const string_view &password)
|
||||
const noexcept try
|
||||
const try
|
||||
{
|
||||
char buf[64];
|
||||
const auto supplied
|
||||
|
|
Loading…
Add table
Reference in a new issue