From 2396c8cee27f818689f512b7709d49a3d2ff09b3 Mon Sep 17 00:00:00 2001 From: Kayden Tebau Date: Mon, 17 Oct 2022 16:10:32 -0700 Subject: [PATCH] Minor improvements --- lib/unix_dog.pm | 4 ++++ lib/unix_dog/Controller/Account.pm | 4 ++++ lib/unix_dog/Controller/Main.pm | 4 ++++ lib/unix_dog/Controller/Register.pm | 4 ++++ templates/account/accountManage.html.ep | 2 +- templates/example/welcome.html.ep | 9 --------- templates/layouts/default.html.ep | 3 +++ templates/main/index.html.ep | 7 +++++-- templates/register/registerPage.html.ep | 5 ----- 9 files changed, 25 insertions(+), 17 deletions(-) delete mode 100644 templates/example/welcome.html.ep diff --git a/lib/unix_dog.pm b/lib/unix_dog.pm index 88ec1a9..2e621fd 100644 --- a/lib/unix_dog.pm +++ b/lib/unix_dog.pm @@ -1,4 +1,8 @@ package unix_dog; +use strict; +use warnings FATAL => 'all'; +use experimental 'signatures'; + use Mojo::Base 'Mojolicious', -signatures; # This method will run once at server start diff --git a/lib/unix_dog/Controller/Account.pm b/lib/unix_dog/Controller/Account.pm index 01e7ed8..23e1b1c 100644 --- a/lib/unix_dog/Controller/Account.pm +++ b/lib/unix_dog/Controller/Account.pm @@ -1,4 +1,8 @@ package unix_dog::Controller::Account; +use strict; +use warnings FATAL => 'all'; +use experimental 'signatures'; + use Mojo::Base 'Mojolicious::Controller', -signatures; use Net::LDAPS; use Net::LDAP::Extension::SetPassword; diff --git a/lib/unix_dog/Controller/Main.pm b/lib/unix_dog/Controller/Main.pm index 0432864..c87a95c 100644 --- a/lib/unix_dog/Controller/Main.pm +++ b/lib/unix_dog/Controller/Main.pm @@ -1,4 +1,8 @@ package unix_dog::Controller::Main; +use strict; +use warnings FATAL => 'all'; +use experimental 'signatures'; + use Mojo::Base 'Mojolicious::Controller', -signatures; use Net::LDAPS; diff --git a/lib/unix_dog/Controller/Register.pm b/lib/unix_dog/Controller/Register.pm index b3ed7de..e0f258b 100644 --- a/lib/unix_dog/Controller/Register.pm +++ b/lib/unix_dog/Controller/Register.pm @@ -1,4 +1,8 @@ package unix_dog::Controller::Register; +use strict; +use warnings FATAL => 'all'; +use experimental 'signatures'; + use Mojo::Base 'Mojolicious::Controller', -signatures; use Net::LDAPS; use Net::LDAP::Extension::SetPassword; diff --git a/templates/account/accountManage.html.ep b/templates/account/accountManage.html.ep index e828d3c..a5af29c 100644 --- a/templates/account/accountManage.html.ep +++ b/templates/account/accountManage.html.ep @@ -61,6 +61,6 @@ %= label_for curPasswd => 'Current password:' %= password_field 'curPasswd', id => 'curPasswd'

- + %= submit_button 'Update!' % end diff --git a/templates/example/welcome.html.ep b/templates/example/welcome.html.ep deleted file mode 100644 index 0a67219..0000000 --- a/templates/example/welcome.html.ep +++ /dev/null @@ -1,9 +0,0 @@ -% layout 'default'; -% title 'Welcome'; -

<%= $msg %>

-

- This page was generated from the template "templates/example/welcome.html.ep" - and the layout "templates/layouts/default.html.ep", - <%= link_to 'click here' => url_for %> to reload the page or - <%= link_to 'here' => '/index.html' %> to move forward to a static page. -

diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index f9d8fda..2c27912 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -9,6 +9,9 @@ + + + diff --git a/templates/main/index.html.ep b/templates/main/index.html.ep index 2f2035f..8a1b0bc 100644 --- a/templates/main/index.html.ep +++ b/templates/main/index.html.ep @@ -14,7 +14,10 @@

We provide a public server running Gentoo Linux for use by our members. You get a webpage under unix.dog you can fully customize, and a working - email you can send and receive from. + email you can send and receive from. We also provide more services—check the link at the top :3 +
+ Happy barking! +
Server specifications: