59 Commits (a28ebcb401be9a2b0c052d1db319a0c5d6622a3d)

Author SHA1 Message Date
Jeremy Lin a28ebcb401 Use local time in email notifications for new device logins 5 years ago
Daniel García 0807783388
Add ip on totp miss 5 years ago
Daniel García 9cca64003a
Remove unused dependency and simple feature, update dependencies and fix some clippy lints 5 years ago
Jeremy Lin c06162b22f Handle `devicePushToken` 5 years ago
Daniel García 5cabf4d040
Fix IP not shown when failed login (Fixes #761) 5 years ago
Daniel García 912e1f93b7
Fix some lints 5 years ago
tomuta bd1e8be328 Implement change-email, email-verification, account-recovery, and welcome notifications 5 years ago
vpl 2edecf34ff Use user_uuid instead of mut twofactor 6 years ago
vpl 18bc8331f9 Send email when preparing 2FA JsonError 6 years ago
BlackDex ebf40099f2 Updated authenticator TOTP 6 years ago
vpl ee7837d022 Add option to require new device emails 6 years ago
Daniel García 07743e490b
Ignore error sending device email 6 years ago
vpl 6d460b44b0 Use saved token for email 2fa codes 6 years ago
vpl efd8d9f528 Remove some unused imports, unneeded mut variables 6 years ago
vpl 29aedd388e Add email code logic and move two_factor into separate modules 6 years ago
vpl 27e0e41835 Add email authenticator logic 6 years ago
vpl df71f57d86 Move send device email to end of password login 6 years ago
vpl 60e39a9dd1 Move retrieve/new device from connData to separate function 6 years ago
vpl bc6a53b847 Add new device email when user logs in 6 years ago
Emil Madsen e22e290f67 Fix key and type variable names for mysql 6 years ago
Daniel García 253faaf023
Use users duo host when required, instead of always using the global one 6 years ago
Daniel García 8d9827c55f
Implement selection between global config and user settings for duo keys. 6 years ago
Daniel García 754087b990
Add global duo config and document options in .env template 6 years ago
Daniel García cfbeb56371
Implement user duo, initial version 6 years ago
Daniel García 7d2bc9e162
Added option to force 2fa at logins and made some changes to two factor code. 6 years ago
Daniel García 5ee04e31e5
Updated dependencies, removed some unnecessary clones and fixed some lints 6 years ago
Daniel García 9636f33fdb
Implement constant time equal check for admin, 2fa recover and 2fa remember tokens 6 years ago
Daniel García 700e084101
Add 2FA icon to admin panel 6 years ago
Daniel García a1dc47b826
Change config to thread-safe system, needed for a future config panel. 6 years ago
Daniel García 30e768613b
Start using rustfmt and some style changes to make some lines shorter 6 years ago
Daniel García 6a99849a1e
Implemented proper error handling, now we can do `user.save($conn)?;` and it works. 6 years ago
Daniel García 5a9aab1a32
Implement fromform, and ignore case and underscores, fixes #298 6 years ago
algebro e26e2319da Close #264. Usernames and IP addresses are logged on successful authentication 6 years ago
Daniel García 7adc045b80
Updated IP logging to use client_ip, to match old remote behavior. 6 years ago
Daniel García 738ad2127b
Fixed some clippy linting issues 6 years ago
Daniel García cb930a0858
Remove some required values during login, now uses default values 6 years ago
Daniel García 94810c106a
Migrate to rust 2018 edition 6 years ago
Stepan Fedorko-Bartos f344dbaad4 Fixes NFC Response for Mobile Login 6 years ago
Stepan Fedorko-Bartos 9e0e4b13c5 Adds Yubikey OTP Support 6 years ago
Daniel García bc532f54d5
Improve login query parsing 7 years ago
Daniel García c673370103
Updated bw_rs to Rocket version 0.4-rc1 7 years ago
janost 58a78ffa54 Device::save() should return QueryResult instead of bool 7 years ago
Miroslav Prasil a28caa33ef Implement poor man's admin panel 7 years ago
Daniel García 8651df8c2a
Fixed some lint issues 7 years ago
Daniel García 948554a20f
Added config option for websocket port, and reworked the config parsing a bit. 7 years ago
Baelyk c386b3bcf7 Add IP and Username to failed login attempts 7 years ago
Daniel García 819622e310 Documented U2F, removed debug prints, and documented missing features 7 years ago
Daniel García dae92b9018 Implemented U2F, refactored Two Factor authentication, registering U2F device and authentication should work. Works on Chrome on MacOS with a virtual device. 7 years ago
Miroslav Prasil 9f8183deb0 Remove some extra debug prints 7 years ago
Daniel García 483066b9a0 Some style changes, removed useless matches and formats 7 years ago