2020-07-16 23:10:31 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-02-28 17:43:40 +01:00
|
|
|
declare -A strings
|
|
|
|
|
2020-07-16 23:10:31 +02:00
|
|
|
if [[ ${post_data[login]} != '' && ${post_data[password]} != '' ]]; then
|
|
|
|
register ${post_data[login]} ${post_data[password]}
|
|
|
|
status=$?
|
|
|
|
if [[ $status == 0 ]]; then
|
|
|
|
meta[redirect]='/'
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
source templates/head.sh
|
|
|
|
|
|
|
|
if [[ $status == 1 && $reason != '' ]]; then
|
2021-02-28 17:43:40 +01:00
|
|
|
strings[reason]="$reason"
|
2020-07-16 23:10:31 +02:00
|
|
|
fi
|
|
|
|
|
2021-02-28 17:43:40 +01:00
|
|
|
render strings "${cfg[namespace]}/templates/themes/${cfg[template]}/register.t"
|