provide a register button on login

also direct users from file to login
This commit is contained in:
ansuz
2017-05-29 13:11:07 +02:00
parent b910915d47
commit 3915b30055
6 changed files with 39 additions and 1 deletions

View File

@@ -301,7 +301,12 @@ define([
}
if (!Cryptpad.isLoggedIn()) {
return Cryptpad.alert("You must be logged in to upload files");
return Cryptpad.alert(Messages.upload_mustLogin, function () {
if (sessionStorage) {
sessionStorage.redirectTo = window.location.href;
}
window.location.href = '/login/';
});
}
$form.css({