mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Removed unused controller, which was used for U2F registration before
This commit is contained in:
parent
ce064a0b37
commit
720859197c
2 changed files with 1 additions and 30 deletions
|
@ -61,7 +61,7 @@ export default class extends Controller {
|
||||||
|
|
||||||
if(!prototype) {
|
if(!prototype) {
|
||||||
console.warn("Prototype is not set, we cannot create a new element. This is most likely due to missing permissions.");
|
console.warn("Prototype is not set, we cannot create a new element. This is most likely due to missing permissions.");
|
||||||
bootbox.alert("You do not have the permsissions to create a new element. (No protoype element is set)");
|
bootbox.alert("You do not have the permissions to create a new element. (No protoype element is set)");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
/*
|
|
||||||
* This file is part of Part-DB (https://github.com/Part-DB/Part-DB-symfony).
|
|
||||||
*
|
|
||||||
* Copyright (C) 2019 - 2022 Jan Böhmer (https://github.com/jbtronics)
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as published
|
|
||||||
* by the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import {Controller} from "@hotwired/stimulus";
|
|
||||||
|
|
||||||
export default class extends Controller
|
|
||||||
{
|
|
||||||
connect() {
|
|
||||||
this.element.onclick = function() {
|
|
||||||
window.u2fauth.register();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue