Changeset 32165


Ignore:
Timestamp:
01/07/15 14:50:48 (8 years ago)
Author:
obi
Message:

optimize community_pass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/adjust.h

    r32134 r32165  
    249249        changeinput(community_user, getconfig("community_user", NULL));
    250250
    251         changemask(community_pass, "abcdefghijklmnopqrstuvwxyz");
    252         changeinput(community_pass, getconfig("community_pass", NULL));
     251//      changemask(community_pass, "abcdefghijklmnopqrstuvwxyz");
     252//      changeinput(community_pass, getconfig("community_pass", NULL));
     253        changemask(community_pass, "****");
     254        changeinput(community_pass, "****");
    253255
    254256#ifdef MIPSEL
     
    417419
    418420                        addconfigscreen("community_user", community_user);
    419                         addconfigscreen("community_pass", community_pass);
     421                        // hid pass text and convert to md5sum
     422                        if(community_pass->ret != NULL && ostrcmp(community_pass->ret, "****") != 0)
     423                        {
     424                                debug(10, "community_pass: write");
     425                                if(strlen(community_pass->ret) != 32)
     426                                {
     427                                        debug(10, "community_pass: convert to md5");
     428                                        community_pass->ret = ostrcat(MDString(community_pass->ret), NULL, 1, 0);
     429                                }
     430                                addconfigscreen("community_pass", community_pass);
     431                        }
     432                        else
     433                                debug(10, "community_pass: skipped");
    420434
    421435                        writeallconfig(1);
Note: See TracChangeset for help on using the changeset viewer.