Adding missing controller.
This commit is contained in:
parent
a549732ce7
commit
45386ebd75
|
@ -0,0 +1,16 @@
|
||||||
|
package BeastBB::Controller;
|
||||||
|
|
||||||
|
use 5.30.3;
|
||||||
|
|
||||||
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
|
||||||
|
use Mojo::Base 'Mojolicious::Controller';
|
||||||
|
|
||||||
|
sub new {
|
||||||
|
my $class = shift;
|
||||||
|
my $self = $class->SUPER::new(@_);
|
||||||
|
$self->session( expiration => 3600 );
|
||||||
|
return $self;
|
||||||
|
}
|
||||||
|
1;
|
|
@ -1,19 +0,0 @@
|
||||||
window.addEventListener( 'load', (event) => {
|
|
||||||
load();
|
|
||||||
});
|
|
||||||
|
|
||||||
function load() {
|
|
||||||
let postgres_password_change_readbility = document.querySelector('#change_readable_password');
|
|
||||||
postgres_password_change_readbility.addEventListener('click', (event) => {
|
|
||||||
change_readbility_password();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function change_readbility_password() {
|
|
||||||
let postgres_password = document.querySelector('#postgres_password');
|
|
||||||
if ( postgres_password.type === 'password' ) {
|
|
||||||
postgres_password.type = 'text';
|
|
||||||
} else {
|
|
||||||
postgres_password.type = 'password';
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue