Users using the Tequila login are invited to migrate to gitlab.epfl.ch. This instance will close for Tequila users by May 2020.

Commit 697e5560 authored by Florian Vessaz's avatar Florian Vessaz

Fix membership payement during registration

parent 2258a0cd
......@@ -395,7 +395,7 @@ post '/new_member' => sub {
mail => params->{mail},
mobile => params->{mobile},
shell => params->{shell},
membership => params->{membership},
membership => params->{paid},
);
if (defined params->{gaspar}) {
......@@ -425,7 +425,7 @@ post '/new_member' => sub {
shell => params->{shell}
);
if ($m) {
if (params->{membership}) {
if (params->{paid}) {
$m->subscription(time);
}
my $reset_link = password_reset_link($m->username);
......
......@@ -98,9 +98,9 @@
<tr>
<td>Membership fee</td>
<td>
<input type="checkbox" name="subscription"/>
<input type="checkbox" name="paid"/>
<p class="description">
Check if the member has payed the membership fee.
Check if the member has paid the membership fee.
</p>
</td>
</tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment