Commit 736df916 authored by Bruno Coudoin's avatar Bruno Coudoin

No more request the activation code for the administation module.

parent 5709a54c
......@@ -233,10 +233,7 @@ gc_board_check_file(GcomprisBoard *gcomprisBoard)
return TRUE;
}
if(properties->administration)
key_is_valid = 1;
else
key_is_valid = gc_activation_check(properties->key);
key_is_valid = gc_activation_check(properties->key);
i = 0;
if(key_is_valid >= 1)
......
......@@ -935,7 +935,7 @@ display_activation_dialog()
* Return -1 if the code is not valid
* 0 if the code is valid but out of date
* 1 if the code is valid and under 2 years
* 2 if the code is valid and under 2 years
* 2 for the demo code
*/
gint gc_activation_check(const char *code)
{
......@@ -948,6 +948,9 @@ gint gc_activation_check(const char *code)
char crc2 = 0;
char codeddate[5];
if (properties->administration)
return 1;
if(strlen(code) != 6)
return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment