public AuthFrame(final AuthModule module) {
		super("Авторизация", true, false, false, false);
		setFrameIcon(Resources.getImageIcon("frame.png"));
		setBounds(100, 100, 203, 213);
		getContentPane().setLayout(null);
		
		okButton = new JButton("Вход");
		okButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				if(Check()){
					module.onLogin(loginField.getText(), new String(passwordField.getPassword()));
					AuthFrame.this.close();
				}else{
					WebOptionPane.showMessageDialog(AuthFrame.this, "Неверный логин или пароль");
				}
			}
		});
		okButton.setBounds(54, 151, 89, 23);
		getContentPane().add(okButton);
		
		loginField = new JTextField();
		loginField.setBounds(10, 53, 173, 20);
		getContentPane().add(loginField);
		loginField.setColumns(10);
		
		JLabel lblNewLabel = new JLabel("Логин:");
		lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
		lblNewLabel.setForeground(Color.BLACK);
		lblNewLabel.setBounds(10, 28, 173, 14);
		getContentPane().add(lblNewLabel);
		
		passwordField = new JPasswordField();
		passwordField.setBounds(10, 106, 173, 20);
		getContentPane().add(passwordField);
		
		label = new JLabel("Пароль:");
		label.setHorizontalAlignment(SwingConstants.CENTER);
		label.setForeground(Color.BLACK);
		label.setBounds(10, 84, 173, 14);
		getContentPane().add(label);
	}