Revision 7584
trunk/frameworks/_fwAndami/src/com/iver/andami/Launcher.java | ||
---|---|---|
1870 | 1870 |
|
1871 | 1871 |
IAuthentication session = null; |
1872 | 1872 |
try { |
1873 |
|
|
1874 |
//String location = getClassLocation(Class.forName("com.iver.andami.authentication.Session")); |
|
1875 | 1873 |
session = (IAuthentication)Class.forName("com.iver.andami.authentication.Session").newInstance(); |
1876 | 1874 |
|
1877 | 1875 |
} catch (ClassNotFoundException e) { |
... | ... | |
1890 | 1888 |
|
1891 | 1889 |
session.setPluginDirectory( andamiConfig.getPluginsDirectory() ); |
1892 | 1890 |
if (session.validationRequired()){ |
1893 |
|
|
1894 |
//opens the login dialog for the user to validate |
|
1895 |
//session.loging does not need arguments: they are read in the internal hashtable |
|
1896 |
session.getUser(); |
|
1897 |
if(session.Login((String)session.get("user"),(String)session.get("pwd"))){ |
|
1891 |
if(session.Login()){ |
|
1898 | 1892 |
System.out.println("You are logged in"); |
1899 |
//PluginServices.setSession( session ); |
|
1900 | 1893 |
} |
1901 | 1894 |
else{ |
1902 | 1895 |
JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(), |
1903 | 1896 |
"You are not logged in"); |
1904 |
System.exit(0); |
|
1897 |
//System.exit(0);
|
|
1905 | 1898 |
} |
1906 | 1899 |
PluginServices.setAuthentication(session); |
1907 | 1900 |
} |
Also available in: Unified diff