Capri icon indicating copy to clipboard operation
Capri copied to clipboard

2-step authentication

Open mbsaberi opened this issue 11 years ago • 24 comments

Is there not 2-step authentication options in this skin?

mbsaberi avatar Oct 25 '15 19:10 mbsaberi

Thank you for request. Please update and check.

bilkoua avatar Oct 26 '15 00:10 bilkoua

Thank you Beliys. I've updated the skin and everything is find now, specially 2-step authentication.

mbsaberi avatar Oct 26 '15 06:10 mbsaberi

It seems your skin is so heavy to load. I used Capri skin before too (not your github version), and it was so fast. But as I installed this version of Capri, a simple login and showing first page after that may take about 2-3 minutes (even with missing page elements).

mbsaberi avatar Oct 26 '15 20:10 mbsaberi

On my server skin load very fast. I need debug for check problem.

bilkoua avatar Oct 26 '15 20:10 bilkoua

What can I do for it ?

mbsaberi avatar Oct 26 '15 20:10 mbsaberi

Do you can give me test account for directadmin and console?

bilkoua avatar Oct 26 '15 20:10 bilkoua

Unfortunately I can't. Is there anything that I can do myself?

mbsaberi avatar Oct 26 '15 20:10 mbsaberi

Do you have error in browser console? Have error in php debug mode?

bilkoua avatar Oct 26 '15 20:10 bilkoua

How elements be missing?

bilkoua avatar Oct 26 '15 20:10 bilkoua

For example after first login, I waited for seeing 2-step authentication section about 3 minutes. And finally it did not load. I had to refresh the page 3 or 4 times to watch it.

mbsaberi avatar Oct 26 '15 20:10 mbsaberi

Do you have error in browser console?

bilkoua avatar Oct 26 '15 20:10 bilkoua

Nothing ...

mbsaberi avatar Oct 26 '15 21:10 mbsaberi

Maybe it was a connection problem at that time. I will check errors once again if I occur with this problem. Thank you for your attention.

mbsaberi avatar Oct 26 '15 21:10 mbsaberi

I fix potential problem with two-step auth (can load slow after login). Please update.

bilkoua avatar Oct 26 '15 23:10 bilkoua

Before update, I took a look at console errors in browser and these were the errors:

Failed to load resource: net::ERR_TIMED_OUT for IMG_MENU_HELP and IMG_LV_BT_ADMIN

What is the last version right now?

mbsaberi avatar Oct 27 '15 05:10 mbsaberi

i think problem be in domain boxes. Where use API function before full auth (on security questions page). Directadmin not return anything for non auth user and you wait php timeout for this function. I add temporarily check for this block (|*if HAVE_TWOSTEP_AUTH!="yes"|) and be thinking how better make global fix for him.

bilkoua avatar Oct 27 '15 07:10 bilkoua

Yes, I think so. Delay to show UI is between first login (successful) and asking 2-step authentication code.

By the way, I am not sure could I update to latest version or not. May you take a look at the attached image please capture ?

mbsaberi avatar Oct 27 '15 08:10 mbsaberi

last version is 1.33 but you have 1.32 for check version skin use next php function

if($versions = @file_get_contents("https://raw.githubusercontent.com/Terrorhawk/Capri/master/version.txt")) {
    list($ava_version, $da_version) = explode('-', $versions);
  } else {
    $ava_version = 'n/a';
    $da_version = 'n/a';
  }

you have error in

file_get_contents("https://raw.githubusercontent.com/Terrorhawk/Capri/master/version.txt")

Check php and network on you server for understanding problem.

bilkoua avatar Oct 27 '15 08:10 bilkoua

I found somthing about the slow loading.

It only happends to me in firefox. sometimes a page loads realy slow in firefox. In Chrome i never seen this loading time. Did not test IE so dont know if it happends there

Terrorhawk avatar Oct 28 '15 09:10 Terrorhawk

@Terrorhawk I've checked it in Chrome only and saw slow process to show 2-step authentication form. @beliys You were right. Update problem belongs to file_get_contents("https://raw.githubusercontent.com/Terrorhawk/Capri/master/version.txt"). Unfortunatelly https://raw.githubusercontent.com seems blocked connections from some countries (Like Iran, where I am). Is there not any other option or repository?

mbsaberi avatar Oct 28 '15 10:10 mbsaberi