Commit Graph

8 Commits

Author SHA1 Message Date
Tony Murray
32a7c50189 Use Laravel authentication (#8702)
* Use Laravel for authentication
Support legacy auth methods
Always create DB entry for users (segregate by auth method)

Port api auth to Laravel

restrict poller errors to devices the user has access to

Run checks on every page load.  But set a 5 minute (configurable) timer.
Only run some checks if the user is an admin

Move toastr down a few pixels so it isn't as annoying.

Fix menu not loaded on laravel pages when twofactor is enabled for the system, but disabled for the user.
Add two missing menu entries in the laravel menu

Rewrite 2FA code
Simplify some and verify code before applying

Get http-auth working
Handle legacy $_SESSION differently.  Allows Auth::once(), etc to work.

* Fix tests and mysqli extension check

* remove duplicate Toastr messages

* Fix new items

* Rename 266.sql to 267.sql
2018-09-11 07:51:35 -05:00
Tony Murray
7250376104 refactor: Don't access $_SESSION directly for Auth (#8513)
* Don't access $_SESSION directly for Auth

* fix style

* add property annotations
2018-04-07 21:55:28 +01:00
Tony Murray
181fe201fd bug: Fix mark all unread notifications (#7999)
Did not work when other users had marked them as read.
2018-01-05 21:22:48 +00:00
Søren Rosiak
461b39e989 webui: Add ability to mark all notifications as read (#7489)
* feature: Add ability to mark all notifications as read

fixes:
https://community.librenms.org/t/ability-to-mark-all-notifications-as-re
ad/2368/1

* Do not add multiple read notifications_attribs

* not archive, yes non-admin

* Oops, hardcoded user_id
2017-11-28 21:22:53 -06:00
Tony Murray
8c639aa5a4 PSR2 Cleanup: /html edition
Travis tests for code conformance. Ignore warnings for now.
Fixed all errors, left most warnings.
2016-08-18 21:29:30 -05:00
pblasquez
826cd17c33 Ajax headers for various 2016-04-26 15:13:01 -07:00
laf
93b0886567 Added datetime to notifications + Fixed sticky/unsticky notifications disappearing 2016-01-10 22:22:13 +00:00
Daniel Preussker
0ff693bd0e Added notifications poller,page,schema,display 2015-11-21 11:22:59 +00:00