Page 2 of 3

Password-Protect Download Button

Posted: Thu Jul 10, 2014 2:11 pm
by Mike6580064

Katya,

I am unsure of what JS to run on button click that will fire a dialog box where the user can input their password.


Password-Protect Download Button

Posted: Thu Jul 10, 2014 3:27 pm
by Mike6580064

Can I create a pop-up style dialog box without having to create a whole login page?


Password-Protect Download Button

Posted: Thu Jul 10, 2014 11:10 pm
by Yurii Orishchuk

Hi Mike,

Yes, you can implement only dialog page with login form without implementing it in whole application.

See how to create dialog page: http://prntscr.com/41f7i5/direct

To open dialog you can use following js code:

pre

//Note you should replace "dialogPageName" with your dialog page name.
Apperyio.navigateTo("dialogPageName")

/pre

Regards.


Password-Protect Download Button

Posted: Fri Jul 11, 2014 5:14 pm
by Mike6580064

Perfect, thanks guys.

Is it possible to omit the username input box and just have a user enter a password?


Password-Protect Download Button

Posted: Fri Jul 11, 2014 5:16 pm
by Mike6580064

Perfect, thanks guys


Password-Protect Download Button

Posted: Mon Jul 14, 2014 3:46 pm
by Mike6580064

Is it possible to get rid of the username input and just require a password for a login service?


Password-Protect Download Button

Posted: Mon Jul 14, 2014 6:41 pm
by Kateryna Grynko

Hi Mike,

Appery.io Database uses login system based on login and password: http://devcenter.appery.io/documentat...

You could create your own collection with passwords only, but then our default services won't work and you'll need to implement custom logic.


Password-Protect Download Button

Posted: Mon Jul 14, 2014 6:59 pm
by Mike6580064

Thanks Katya


Password-Protect Download Button

Posted: Mon Jul 14, 2014 7:01 pm
by Kateryna Grynko

Hi Mike,

However, I would recommend that you add an only input field for password and just map it to both request parameters 'username' and 'password' as I already advised above. This is the easiest way I think.


Password-Protect Download Button

Posted: Mon Jul 14, 2014 7:39 pm
by Mike6580064

Katya! I read your response incorrectly the first time. This is exactly the solution I was looking for! Thanks!