rejetto forum

delphi 10

rejetto · 112 · 15683

0 Members and 1 Guest are viewing this topic.

Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile
the login problem is silly, and i fixed it very easily, but then had a lot of more work to do for other stuff.
You'll see it fixed in next release, don't worry.
Cool! I had done the same tests as NaitLee, with some "é" and  "à" and "e" and "a:D ... for the same results (but now I know the vowels better). ;)
The next release will be welcome. ;)
« Last Edit: May 11, 2020, 03:12:11 PM by SilentPliz »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13310
    • View Profile
https://github.com/rejetto/hfs2/releases/tag/v2.4-alpha07


it took a while because i took care of all the compilation warnings about possible data loss.
still a lot that deserves to be rewritten


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile

NaitLee
If rejetto's link is always problematic for you ... you can use the link I gave you yesterday ... I updated it.


Offline NaitLee

  • Tireless poster
  • ****
    • Posts: 164
  • Computer brained boy
    • View Profile
    • A Normal Webpage
NaitLee
If rejetto's link is always problematic for you ... you can use the link I gave you yesterday ... I updated it.

Okay!
I will be not here and unable to do new tests these days, just hope 2.4 will be accomplished perfectly!

----
Edit: I had a test with alpha7, perfect!

Something mentioned by Leo before: After logout, the user's login information expires after the last marked connection (username@IP) ends.
If I login as a user who have only access to a folder, then enter that folder, logout, back, there leaves an idle connection, and I still opened that page. This keeps the user not truly logged out.
 After this, I copied that page to another tab, and I can access that one too.
 So, if I keep refreshing the half-logged out page (eg. with a setInterval()), I can still access other pages with my session before logout, the session never expires until that connection is kicked.

Is this thing necessary?
« Last Edit: May 11, 2020, 06:57:06 PM by NaitLee »
Check out my template and PHFS ;)


Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 760
  • Status: On hiatus (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
Something mentioned by Leo before: After logout, the user's login information expires after the last marked connection (username@IP) ends.
If I login as a user who have only access to a folder, then enter that folder, logout, back, there leaves an idle connection, and I still opened that page. This keeps the user not truly logged out.
 After this, I copied that page to another tab, and I can access that one too.
 So, if I keep refreshing the half-logged out page (eg. with a setInterval()), I can still access other pages with my session before logout, the session never expires until that connection is kicked.
Woohoo! :D At least someone was able to reproduce the issue!! (for those reading this post, this small issue is described here and here). I didn't wanted to bother Rejetto anymore with such a small issue (he is overloaded porting version 2.4 to Delphi 10), but the issue it's still present. I consider this is not very important (since after 30 seconds, the logout is effective), but perhaps if Rejetto could do some extra tweaks, then this could be totally and absolutely perfect. But Rejetto, please don't feel pressured, if can be solved, good, but if not, don't worry... :)
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13310
    • View Profile
don't worry leo, you are not pressing too much, and the problem is not highly critical ok but surely deserves to be fixed


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13310
    • View Profile

Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile
Better late than never. :P
Thank you.
:)
« Last Edit: May 12, 2020, 07:09:20 PM by SilentPliz »


Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 760
  • Status: On hiatus (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
it's 2020 and you just got the logout button
https://github.com/rejetto/hfs2/releases/tag/v2.4-alpha08
Woohooo!! :D (x2) Now that's big news!!! ;D This day marks a new hit on HFS life. You should be very proud of what you have done (I'm sure v2.4 would be a total success when goes stable to the general public). I'm also very happy of your change to mode=login and mode=logout (it makes template designers life easier). :)

the default template will use this.
I've quickly tested hfs24pre08, and the default template still comes without this (so, I guess it will come out on some next build). It would be nice if it get displayed (as dropdown), the same as the current search button display the search box. I haven't tested the mode=login and mode=logout yet (I will have to look in the source code to see how it works), but if a working example is left on the forum, anyone will be able to test this. :)

Cheers,
Leo.-
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2042
    • View Profile
thanks mars. I'll try "parentfont=true", so that the font is just one.
I do not know if it is an oversight but with parentfont = true which is the default value it does not work, for each component accepting a custom FONT it is absolutely necessary to put parentfont = false everywhere, which also has the consequence of add the other lines to the dfm



there are actually only 5 locations where this is necessary, just do it for one version and this operation will remain operational for the following versions
the list is:
urltoolbar
toptoolbar
graphbox
centralpnl
mainfrm
  select each element successively, change the value from 8 to 6, then immediately return to the value 8, save main.pas and it is final so that the program is displayed correctly on XP


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13310
    • View Profile
I've quickly tested hfs24pre08, and the default template still comes without this

i'm sorry, please redownload it at the same address :(


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13310
    • View Profile
thanks mars, your latest instructions produced the expected result!
i'm seeing if i can improve it further


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2042
    • View Profile
always the same aspect, bug still present  :-[
I reloaded the exe but I wonder if you put the last one with the right dfm

i used your dfm to compile and i have no visual flaws ;), then  you will have to install a virtual machine XP  ;D
« Last Edit: May 12, 2020, 11:24:48 PM by Mars »


Offline dj

  • Tireless poster
  • ****
    • Posts: 279
  • 👣 🐾
    • View Profile
    • PWAs
I quickly tested the new login system.

It works with localhost, but not with http://192.168.137.1/
! TypeError: crypto.subtle is undefined
Because It is available only in https

I also tested Ajax,
but can't get it work
« Last Edit: May 13, 2020, 12:45:09 AM by dj »


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2042
    • View Profile
yes you are right

login not working with a request from another computer, but from local computer at ip 127 or 192 in url  its works


the password change method is to be reviewed because of the redirection to ~ login

Code: [Select]
    function changePwd() {
        {.if|{.can change pwd.}
        | ask(this.innerHTML, 'password', function(s){
            s && ajax('changepwd', {'new':s}, getStdAjaxCB(function(){
                showMsg("{.!Password changed, you'll have to login again..}")
                location = '~login'
            }))
        })
        | showError("{.!Sorry, you lack permissions for this action.}")
.}
    }//changePwd


in main.pas  '~login' become obsolete
in hslib.pas  part of  WWW-Authentificate can be removed ??
« Last Edit: May 13, 2020, 01:28:50 AM by Mars »