provide a register button on login

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

No files matched your search

+6 -1
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({