Commit Graph
14 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
Neil Lathwood d65ea76355 Fix top interfaces for non-admin users (#9038) 2018-08-19 20:21:03 -05:00
Neil Lathwood 65e07d1951 Fixed widgets from updated dbFacile changes (#9033)
* Fixed widgets from updated dbFacile changes

* Updated top interfaces
2018-08-18 17:07:42 +01: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 1bbbaff58b refactor: Moved ifLabel -> cleanPort and updated the usage (#6288)
* refactor: Moved ifLabel -> cleanPort and updated the usage

* added list of tags allowed

* few updates as per comments from @murrant

* Added simple unit tests

* double display for javascript popover

* Remove ifNameDescr() function
Fix realtime port page

* remove accidental temp code

* Remove double display calls in ajax tables
2017-04-04 08:08:23 +01: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
Richard Lawley 60bb400202 Add sysName for top-interfaces with force_ip_to_sysname for normal user 2016-03-09 12:41:10 +00:00
Mike Rostermund bf9aea6bfa Shorten interface name in top interface widget 2015-09-23 18:30:41 +02:00
f0o 14f1bd36b8 Added ability to filter top interfaces by type 2015-09-20 10:13:56 +01:00
Sergiusz Paprzycki d03959442d Still slightly lost with git, sorry! 2015-09-15 11:57:09 +01:00
Sergiusz Paprzycki 198b8bbcef Next revision for review - 3 out of 4 queries working happily now 2015-09-15 11:57:09 +01:00
Sergiusz Paprzycki 80d6954e5c Better SQL queries, but fully broken 2015-09-15 11:57:09 +01:00
Sergiusz Paprzycki d36c8b9580 Fixed form IDs 2015-09-15 11:57:09 +01:00
Sergiusz Paprzycki 0dd65a1ca4 Top devices & top interfaces widgets 2015-09-15 11:57:09 +01:00