#idempiere IRC log for Sunday, 2017-09-10

*** mbozem has joined #idempiere01:03
*** mbozem2 has quit IRC01:04
*** a42niem has joined #idempiere05:47
Not-bfd4[IDEMPIERE] pshepetko created IDEMPIERE-3479 2FA for iDempiere ERP Business Suite based Google Authenticator05:48
Not-bfd4[IDEMPIERE] http://idempiere.atlassian.net/browse/IDEMPIERE-347905:48
Not-bfd4[IDEMPIERE] pshepetko updated IDEMPIERE-3479 Attachment set to "TOTP.java"05:48
Not-bfd4[IDEMPIERE] http://idempiere.atlassian.net/browse/IDEMPIERE-347905:48
Not-bfd4[IDEMPIERE] pshepetko updated IDEMPIERE-3479 Attachment set to "LoginPanel.java"06:06
Not-bfd4[IDEMPIERE] http://idempiere.atlassian.net/browse/IDEMPIERE-347906:06
*** brent has quit IRC07:42
*** brent has joined #idempiere07:55
*** CarlosRuiz has joined #idempiere10:08
Not-bfd4[IDEMPIERE] pshepetko updated IDEMPIERE-3479 Attachment set to "2FAiD.png"10:12
Not-bfd4[IDEMPIERE] http://idempiere.atlassian.net/browse/IDEMPIERE-347910:12
*** CarlosRuiz has quit IRC10:26
*** nmicoud has joined #idempiere12:54
*** nmicoud has quit IRC13:14
*** jdpaniagua has quit IRC15:12
*** jdpaniagua has joined #idempiere15:30
Not-bfd4[IDEMPIERE] hieplq updated IDEMPIERE-347917:16
Not-bfd4[IDEMPIERE] 2. Add three fields to AD_User_Preference table but i don't see sql migrate, any missing? and how to user init "Google Authenticator"?17:16
Not-bfd4[IDEMPIERE] http://idempiere.atlassian.net/browse/IDEMPIERE-347917:16
Not-bfd4[IDEMPIERE] pshepetko updated IDEMPIERE-347917:45
Not-bfd4[IDEMPIERE] Hi Hiep! I will prepare migration scripts and demo video for this feature soon. User init GA in function validateLogin() and check 2FA code: -------------------------------- //PS check is 2FA #IDEMPIERE-3479 if (txt2FA.isVisible()) { if (!txt2FA.getValue().toString().equals(checkCode( DB.getSQLValueString(null, "SELECT up.Code2FA FROM AD_UserPreference up " + "LEFT JOIN AD_USER u ON17:45
Not-bfd4u.AD_User_ID=up.AD_User_ID " + "WHERE Code2FA IS NOT NULL AND u.Name='"+txtUserId.getValue().toString()+"';") ))) { Clients.clearBusy(); throw new WrongValueException("2FA Code is wrong!"); } } //PS #IDEMPIERE-3479 ----------------------------- What do you think about new plug-in 2FA or better if we add this feature to core?17:45
Not-bfd4[IDEMPIERE] http://idempiere.atlassian.net/browse/IDEMPIERE-347917:45
Not-bfd4[IDEMPIERE] pshepetko updated IDEMPIERE-3479 Attachment set to "ad_userpreference ADD COLUMN.sql"17:47
Not-bfd4[IDEMPIERE] http://idempiere.atlassian.net/browse/IDEMPIERE-347917:47
Not-bfd4[IDEMPIERE] pshepetko updated IDEMPIERE-347917:48
Not-bfd4[IDEMPIERE] I added the migration scripts17:48
Not-bfd4[IDEMPIERE] http://idempiere.atlassian.net/browse/IDEMPIERE-347917:48
Not-bfd4[IDEMPIERE] pshepetko updated IDEMPIERE-347920:11
Not-bfd4[IDEMPIERE] I added the script for fields create20:11
Not-bfd4[IDEMPIERE] http://idempiere.atlassian.net/browse/IDEMPIERE-347920:11
*** Bobbydatesta has joined #idempiere20:44
Not-bfd4[IDEMPIERE] pshepetko updated IDEMPIERE-3479 Attachment set to "2FA_Callauot.PNG"21:19
Not-bfd4[IDEMPIERE] http://idempiere.atlassian.net/browse/IDEMPIERE-347921:19
Not-bfd4[IDEMPIERE] pshepetko updated IDEMPIERE-347921:22
Not-bfd4[IDEMPIERE] Search Key&Name= beanshell:2FA Event Type = Callout Rule Type = JSR 223 Scripting APIs Scrip= import org.compiere.util.Env; import org.compiere.model.MUser; if (A_Tab.getValue("is2FA")) { String randomSecretKey= org.adempiere.webui.panel.LoginPanel.getRandomSecretKey(); MUser user = new MUser (Env.getCtx(), Env.getAD_User_ID(Env.getCtx()), null); A_Tab.setValue("Code2FA",randomSecretKey);21:22
Not-bfd4A_Tab.setValue("ImageURL","https://www.google.com/chart?chs=200x200&chld=M%%7C0&cht=qr&chl=otpauth://totp/"+user.getName()+"@iDempiereERP?secret="+randomSecretKey) ; } else { A_Tab.setValue("Code2FA",""); A_Tab.setValue("ImageURL","") ; } result="";21:22
Not-bfd4[IDEMPIERE] http://idempiere.atlassian.net/browse/IDEMPIERE-347921:22
Not-bfd4[IDEMPIERE] pshepetko updated IDEMPIERE-347921:22
Not-bfd4[IDEMPIERE] Search Key&Name= beanshell:2FA Event Type = Callout Rule Type = JSR 223 Scripting APIs Script= import org.compiere.util.Env; import org.compiere.model.MUser; if (A_Tab.getValue("is2FA")) { String randomSecretKey= org.adempiere.webui.panel.LoginPanel.getRandomSecretKey(); MUser user = new MUser (Env.getCtx(), Env.getAD_User_ID(Env.getCtx()), null); A_Tab.setValue("Code2FA",randomSecretKey);21:22
Not-bfd4A_Tab.setValue("ImageURL","https://www.google.com/chart?chs=200x200&chld=M%%7C0&cht=qr&chl=otpauth://totp/"+user.getName()+"@iDempiereERP?secret="+randomSecretKey) ; } else { A_Tab.setValue("Code2FA",""); A_Tab.setValue("ImageURL","") ; } result="";21:22
Not-bfd4[IDEMPIERE] http://idempiere.atlassian.net/browse/IDEMPIERE-347921:22
*** a42niem has quit IRC21:58
*** silphium has joined #idempiere22:09

Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!