HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux aritmodecarnaval.es 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: www-data (33)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //home/www/aritmodecarnaval/nextcloud/core/js/publicshareauth.js
function showEmailAddressPromptForm() {
	// Shows email prompt
	var emailInput = document.getElementById('email-input-form');
	emailInput.style.display="block";

	// Shows back button
	var backButton = document.getElementById('request-password-back-button');
	backButton.style.display="block";

	// Hides password prompt and 'request password' button
	var passwordRequestButton = document.getElementById('request-password-button-not-talk');
	var passwordInput = document.getElementById('password-input-form');
	passwordRequestButton.style.display="none";
	passwordInput.style.display="none";

	// Hides identification result messages, if any
	var identificationResultSuccess = document.getElementById('identification-success');
	var identificationResultFailure = document.getElementById('identification-failure');
	if (identificationResultSuccess) {
		identificationResultSuccess.style.display="none";
	}
	if (identificationResultFailure) {
		identificationResultFailure.style.display="none";
	}
}

document.addEventListener('DOMContentLoaded', function() {
	// Enables password submit button only when user has typed something in the password field
	var passwordInput = document.getElementById('password');
	var passwordButton = document.getElementById('password-submit');
	var eventListener = function() {
		passwordButton.disabled = passwordInput.value.length === 0;
	};
	passwordInput.addEventListener('click', eventListener);
	passwordInput.addEventListener('keyup', eventListener);
	passwordInput.addEventListener('change', eventListener);

	// Enables email request button only when user has typed something in the email field
	var emailInput = document.getElementById('email');
	var emailButton = document.getElementById('password-request');
	eventListener = function() {
		emailButton.disabled = emailInput.value.length === 0;
	};
	emailInput.addEventListener('click', eventListener);
	emailInput.addEventListener('keyup', eventListener);
	emailInput.addEventListener('change', eventListener);

	// Adds functionality to the request password button
	var passwordRequestButton = document.getElementById('request-password-button-not-talk');
	passwordRequestButton.addEventListener('click', showEmailAddressPromptForm);

});