Welcome to mirror list, hosted at ThFree Co, Russian Federation.

authpicker.js « login « js « core - github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2d4bcc33158d3151c55bc6ae236501313c987f89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
jQuery(document).ready(function() {
	$('#app-token-login').click(function (e) {
		e.preventDefault();
		$(this).addClass('hidden');
		$('#redirect-link').addClass('hidden');
		$('#app-token-login-field').removeClass('hidden');
	});

	$('#submit-app-token-login').click(function(e) {
		e.preventDefault();
		window.location.href = 'nc://login/server:'
			+ encodeURIComponent($('#serverHost').val())
			+ "&user:" +  encodeURIComponent($('#user').val())
			+ "&password:" + encodeURIComponent($('#password').val());
	});
});