Commit Graph

29 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
Aldemir Akpinar
56561aa4dc feature: Added support for Host dependencies (#7332)
* First draft of the modals and the config interfaces

* GUI part done

* Backend code and db schema addition

* Documentation added, fixed alerting bug

* Fix typos

* Do not try to push an older db_schame.yaml

* Small db fix

* More db fixes

* Travis CI fixes

* missed a line in the travis error

* Fixed dependency clearing bug, Manage Host dependencies button now shows current selections

* Removed unnecessary index

* Correct faulty query

* Fixed sql query as requested, and renamed sql file

* Added requested changes

* Removed debug code

* Renamed sql file

* More fixes as requested

* Trying to fix db_schema.yaml

* adding laf's diff

* Corrected a small bug

* Try to resolve scrutinizer issue

* Main page bootgrid ajax modifications

* Also corrected travis ci errors

* Added select2 for pull downs, removed a redundant debug output. Changed parent_id to text

* Add missing class in the device settings page

* Fix bug where a link wasn't added after save

* Better parent down detection

* Add missing comma

* Behold the multi-parent code

* Added lookup table

* Ready for testing

* Trying to fix documentation conflicts

* Fix copy paste errors, and possible sql injection

* indentation problems

* Modified db_schema.yaml as well

* Typos, typos

* This should correct alerts

* Try to fix travis ci error

* Fix the typo in index.php

* Changed to Tony's query

* function explanation text changed

* Updated db_schema.yaml

* Trying to make automated tests happy

* Changes as requested

* Added acknowledgment for select2

* Added laf's patch

* dbBulkInsert when adding parents
2017-12-20 14:17:52 +00:00
Aldemir Akpinar
550e412808 webui: Added an empty option for delete device selection, and a minor db performance fix (#7018)
* webui: Added an empty option, also minor performance fix on the db query

* Added missing backtick

* Added html options per Laf's suggestion
2017-07-14 11:40:29 +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
Daniel Preussker
731e43bc66 Revert "[WIP] Sanity!" 2016-02-17 13:59:58 +00:00
f0o
c767a26732 more bulk sanity 2016-02-10 16:02:13 +00:00
Arjit Chaudhary
5a67aa9f33 Reduced size to fa-3x and icon now 2015-09-12 20:14:46 +05:30
Arjit Chaudhary
4b6e17b817 Small UI fixes
Screenshot 1: http://i.imgur.com/Cj1PMkp.png
Screenshot 2: http://i.imgur.com/GsAqJuU.png
2015-09-11 01:57:03 +05:30
Arjit Chaudhary
7efbb07695 Unify UI as in add device..
Screenshot: http://i.imgur.com/TgpwIXR.png
2015-08-29 19:00:50 +05:30
Job Snijders
d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
laf
ca5b569e46 Updated device removal message to provide a bit more clarity on what will be removed 2015-03-14 14:44:36 +00:00
f0o
33e8d05c1d Added nl2br to GUI's output of delete_device 2015-03-12 15:54:09 +00:00
Neil Lathwood
2cb5d727b4 Updated to support a demo user 2015-02-16 23:45:28 +00:00
Paul Gear
48d3a43669 Tidy device deletion 2014-09-27 16:32:55 +10:00
laf
cd90c2f071 Updated layout for delete device so it is consistent 2014-07-03 20:45:30 +01:00
laf
c403865ac5 Visually updated delete host page 2014-03-02 21:05:55 +00:00
laf
9cd95cd52a Updated the device delete page so that confirmation is requested. 2013-12-10 03:19:42 +00:00
Tom Laermans
2667649d3c syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@2970 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-06 13:56:23 +00:00
Tom Laermans
a0a1939995 more title sets
git-svn-id: http://www.observium.org/svn/observer/trunk@2691 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-18 14:41:19 +00:00
Tom Laermans
42d43c47e5 confirm device deletion, remove base_url
git-svn-id: http://www.observium.org/svn/observer/trunk@2647 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-05 10:15:48 +00:00
Adam Amstrong
b0e02918ef more db*
git-svn-id: http://www.observium.org/svn/observer/trunk@2322 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-15 14:42:30 +00:00
Tom Laermans
f55a30f744 some formatting cleanups, introduce some more FIXMEs to look at, plus replace mysql_fetch_array by mysql_fetch_assoc, for great justice
git-svn-id: http://www.observium.org/svn/observer/trunk@2029 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-06 13:54:50 +00:00
Tom Laermans
ad49f54cbf ftfy hth hand
git-svn-id: http://www.observium.org/svn/observer/trunk@2020 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-05 08:40:22 +00:00
Adam Amstrong
3f9b72eb5f fix and improve device deletion pages
git-svn-id: http://www.observium.org/svn/observer/trunk@2019 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-05 08:35:50 +00:00
Tom Laermans
ef6406d4c9 more cleanups, remove some FIXMEs
git-svn-id: http://www.observium.org/svn/observer/trunk@1983 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-28 10:39:55 +00:00
Tom Laermans
834989df95 restructure/reindent/htmlfix html pages, remove dead code
git-svn-id: http://www.observium.org/svn/observer/trunk@1897 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-17 00:09:20 +00:00
Tom Laermans
30bdd952ee Minor fixes, some cleanups, and standardising on echo("x") instead of echo "x"
git-svn-id: http://www.observium.org/svn/observer/trunk@1728 61d68cd4-352d-0410-923a-c4978735b2b8
2010-11-20 14:04:07 +00:00
Adam Amstrong
ebb41fa66b DEL. HOST. DOT. INC. DOT. PEE. AICH. PEE.
git-svn-id: http://www.observium.org/svn/observer/trunk@1340 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-10 22:23:51 +00:00