mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Allow user activation/deactivation (MySQL auth) (#10511)
* user deactivation feature * update db_schema.yaml * travis fix * readd sqlfile with alter statement * .. * revert force push * combine all queries * fix query * user enable/disable only visible on mysql authorization * Update form.blade.php * Update index.blade.php * disable 'enabled' on own profile * bootstraping checkboxes
This commit is contained in:
committed by
Tony Murray
parent
552d487ae1
commit
ce628399a9
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class AddEnabledToUsers extends Migration
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->boolean('enabled')->default(1);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('users', function (Blueprint $table) {
|
||||
$table->dropColumn('enabled');
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user