Feels bad to be hard-coding the path in the template, but something in
the reverse proxy broke, so let's just ensure that we're complying with
expectations. Not a bad thing to add in an isnumeric() check for
example.
Signed-off-by: Dan Scott <dan@coffeecode.net>
and affiliation with Laurentian (student, staff, faculty, alumnus).</p>
<h2>Create an account</h2>
-<form action="/">
+<form action="/patron-load">
<label>Laurentian ID: <input name="uid"></label>
<input type="submit">
</form>
i = web.input(uid=None)
- if i.uid:
+ if i.uid and i.uid.isnumeric():
uid = i.uid
+ else:
+ uid = None
- if uid:
+ if uid is not None:
self.args.uid(uid)
users = ldap_osrf_sync.main(self.args)