rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: kaler on August 31, 2009, 03:34:18 PM

Title: script for delet account
Post by: kaler on August 31, 2009, 03:34:18 PM
hi

i have written down a section which you can delet an account if you put in the right code:

Code: [Select]
<script>
function validateCode(form){
if (form.code1.value != form.code2.value){
alert("Der Code wurde falsch eingegeben.");
return false;
  }
return true
}
</script>

Code: [Select]
<u><b>Account l&ouml;schen:</u></b>
<form method=post action="/~userloeschen" onsubmit="return validateCode(this);">
<table>
  <tr><td align=left>Code:</td><td><input name="code1" type="text"></td></tr>
  <tr><td align=left><input size="2" readonly name="code2" value="h3q9" type="text"></td><td align=center><input type="submit" value="L&ouml;schen" >&nbsp;<input type="reset" value="Reset"></td></tr>
</table>
</form>

Now i want to have a script which is activated when the "code1=code2" and you must put ok to delet the account...

what i musst add to the script to realise this?
Title: Re: script for delet account
Post by: Mars on August 31, 2009, 05:27:11 PM
Quote
i have written down a section which you can delet an account if you put in the right code:

The only thing which I notice, it is that the presented code is only a form with one validation of two fields of data, but at all a script to destroy an account.

Working myself in parallel of rejetto on the sources(springs) of hfs, I can assert, it is impossible to delete an account without passing by the interface of hfs.

It is thus of use to nothing to continue in this way, which is without outcome for you. The only possible thing is to deactivate an account, certainly not to delete it. :D
Title: Re: script for delet account
Post by: kaler on August 31, 2009, 05:33:53 PM
sorry with this you only deactivate the account and i will see it and then i will delet the account...

Title: Re: script for delet account
Post by: rejetto on September 04, 2009, 03:39:37 PM
it's like here
http://www.rejetto.com/forum/index.php?topic=7453.msg1045995#msg1045995

to deactivate an account you can
{.set account|NAME|enabled=0.}