0
0
Fork 0
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:
Jason Volk 2019-09-28 01:19:25 -07:00
parent 98d04ebb2f
commit 5f4d8afd86
2 changed files with 6 additions and 3 deletions

View file

@ -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;

View file

@ -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