2022-10-15 15:45:04 -05:00
|
|
|
% title 'UNIX.dog Account';
|
|
|
|
% layout 'default';
|
|
|
|
<% if (my $err = stash 'err') { %>
|
|
|
|
<p class="error">
|
|
|
|
<%= $err %>
|
|
|
|
</p>
|
|
|
|
<% if (my $failed = stash 'failed' and my $v = stash 'v') { %>
|
|
|
|
<ul class="error">
|
|
|
|
<% foreach my $fn (@{$failed}) { %>
|
|
|
|
<% my ($check, $result, @args) = @{$v->error($fn)}; %>
|
|
|
|
<li><%= $fn %>: <%= $check %> <%= join "-", @args %></li>
|
|
|
|
<% } %>
|
|
|
|
</ul>
|
|
|
|
<% } %>
|
|
|
|
<% } %>
|
|
|
|
<p>
|
|
|
|
Please note that this information is public. We don't recommend
|
|
|
|
that you publish your actual phone number or actual name, but
|
|
|
|
it's fun for some jokes. :)
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
Here is your current information:
|
|
|
|
</p>
|
|
|
|
%= form_for account => (method => 'POST') => begin
|
|
|
|
<p>
|
|
|
|
%= label_for gecos => 'GECOS field:'
|
|
|
|
%= text_field gecos => $gecos, id => 'gecos'
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
%= label_for givenName => 'First name:'
|
|
|
|
%= text_field givenName => $givenName, id => 'givenName'
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
%= label_for surname => 'Last name:'
|
|
|
|
%= text_field surname => $surname, id => 'surname'
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
%= label_for loginShell => 'Login shell:'
|
|
|
|
%= text_field loginShell => $loginShell, id => 'loginShell'
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
%= label_for roomNumber => 'Room number:'
|
|
|
|
%= text_field roomNumber => $roomNumber, id => 'roomNumber'
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
%= label_for telNum => 'Telephone number:'
|
|
|
|
%= text_field telNum => $telNum, id => 'telNum'
|
|
|
|
</p>
|
|
|
|
<p>
|
2022-10-18 11:48:18 -05:00
|
|
|
%= label_for sshKeys => 'SSH keys. Add a newline if you have multiple.'
|
2022-10-15 15:45:04 -05:00
|
|
|
<br>
|
2023-01-16 19:53:31 -06:00
|
|
|
%= text_area sshKeys => $sshKeys, id => 'sshKeys', class=>'big'
|
2022-10-15 15:45:04 -05:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
Leave this blank if you don't want to change your password.
|
|
|
|
<br>
|
|
|
|
%= label_for newPasswd => 'New password:'
|
|
|
|
%= password_field 'newPasswd', id => 'newPasswd'
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
%= label_for curPasswd => 'Current password:'
|
|
|
|
%= password_field 'curPasswd', id => 'curPasswd'
|
|
|
|
</p>
|
2022-10-17 18:10:32 -05:00
|
|
|
<input type="text" name="username" hidden value="<%= $username %>">
|
2022-10-15 15:45:04 -05:00
|
|
|
%= submit_button 'Update!'
|
|
|
|
% end
|