Minor improvements

This commit is contained in:
Citlali del Rey 2022-10-17 16:10:32 -07:00
parent ab208912e6
commit 2396c8cee2
Signed by: nullobsi
GPG Key ID: 933A1F44222C2634
9 changed files with 25 additions and 17 deletions

View File

@ -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

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -61,6 +61,6 @@
%= label_for curPasswd => 'Current password:'
%= password_field 'curPasswd', id => 'curPasswd'
</p>
<input type="text" name="username" hidden="true" value="<%= $username %>">
<input type="text" name="username" hidden value="<%= $username %>">
%= submit_button 'Update!'
% end

View File

@ -1,9 +0,0 @@
% layout 'default';
% title 'Welcome';
<h2><%= $msg %></h2>
<p>
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.
</p>

View File

@ -9,6 +9,9 @@
<meta property="og:title" content="<%= title %>">
<meta property="og:type" content="webpage">
<meta property="og:url" content="https://unix.dog/">
<meta property="og:description" content="UNIX for barkers :3">
<meta property="og:image" content="https://unix.dog/favicon.ico">
<meta property="description" content="UNIX for barkers :3">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>

View File

@ -14,7 +14,10 @@
<p>
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&mdash;check the link at the top :3
<br>
Happy barking!
<br>
Server specifications:
</p>
<ul>
@ -35,7 +38,7 @@
UNIX.dog provides many useful services to promote a healthy
federated sphere. XMPP, EMail, and Akkoma are provided to all
registered users. If you have a suggestion for a service, please
email alpha at this domain; we're interesting in hosting more
email alpha at this domain; we're interested in hosting more
useful services for everyone!
</p>
</section>

View File

@ -26,11 +26,6 @@
If you have more concerns about your registration, feel free
to contact alpha at this domain.
</p>
<p>
Self-service password management and SSH key management will
be coming soon, but if you know how, you can update all your
information over LDAP under cn=username,ou=Dogs,dc=unix,dc=dog.
</p>
%= form_for register => (method => 'POST') => begin
<p>