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
Neil Lathwood 6c8e049252 webui: urldecode device notes #5110 (#5824) 2017-02-07 21:09:42 -06:00
Neil Lathwood 36e1cc82f6 webui: Disabled editing device notes for non-admin users (#5341) 2017-01-08 15:05:37 +02:00
Rosiak fcae31c27c fix device notes whitespace 2015-10-11 15:52:18 +02:00
Arjit Chaudhary f222d5de0e Minor UI changes
Screenshot: http://i.imgur.com/VqJ2W8f.png
2015-09-22 18:28:55 +05:30
Rosiak ff7e1f5e84 Use htmlentities 2015-09-17 20:51:10 +02:00
Rosiak 62328dab91 Add Device Notes Field
Add a “Notes” field for devices to accommodate #1897
2015-09-17 16:19:48 +02:00