Ignore:
Timestamp:
09/05/11 21:47:01 (9 months ago)
Author:
delmitz
Branch:
default
Convert:
svn:7c3792e6-d75b-4784-96a6-b298f655ee64/trunk@2736
Message:

fixed otp seed reset bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kraken-dom/src/main/java/org/krakenapps/dom/msgbus/AdminPlugin.java

    r294 r302  
    153153                        throw new IllegalArgumentException("admin not found"); 
    154154 
    155                 if (admin.isUseOtp()) 
    156                         admin.setOtpSeed(createOtpSeed()); 
    157                 else 
    158                         admin.setOtpSeed(null); 
     155                admin.setOtpSeed(createOtpSeed()); 
    159156 
    160157                adminApi.updateAdmin(req.getOrgId(), req.getAdminId(), admin); 
     
    184181                admin.setEnabled(req.getBoolean("is_enabled")); 
    185182                admin.setUseOtp(req.getBoolean("use_otp")); 
    186                 if (admin.isUseOtp()) { 
    187                         if (admin.getOtpSeed() == null) 
    188                                 admin.setOtpSeed(createOtpSeed()); 
    189                 } else 
    190                         admin.setOtpSeed(null); 
    191183 
    192184                admin.validate(); 
Note: See TracChangeset for help on using the changeset viewer.